Skip to content

Commit 180ff5d

Browse files
author
scottjehl
committed
updated unit tests to reflect the new dialog classes
1 parent 2918f18 commit 180ff5d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

tests/unit/dialog/dialog_count.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
test( "When the page loads, any dialogs in the page should be initialized", function() {
77
expect( 1 );
88

9-
ok( $( "#foo-dialog" ).is( ".ui-dialog-page" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
9+
ok( $( "#foo-dialog" ).is( ".ui-dialog" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
1010
});
1111

1212

tests/unit/dialog/dialog_events.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ok( /&ui-state=dialog/.test(location.hash), "ui-state=dialog =~ location.hash", "dialog open" );
2929

3030
// close the dialog
31-
$( ".ui-dialog-page" ).dialog( "close" );
31+
$( ".ui-dialog" ).dialog( "close" );
3232
},
3333

3434
function() {

tests/unit/init/init_dialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
1010

1111
// NOTE this will fail when/if we decide to render it as a dialog
12-
ok( !$("#foo").hasClass( "ui-dialog-page" ), "the div does NOT have the dialog page class" );
12+
ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
1313
});
1414

1515
//NOTE the opposite case is tested everyewhere else in the suite :D

tests/unit/navigation/navigation_core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@
10641064
},
10651065

10661066
function() {
1067-
ok( $.mobile.activePage.is(".ui-dialog-page"), "prefetched page is rendered as a dialog" );
1067+
ok( $.mobile.activePage.is(".ui-dialog"), "prefetched page is rendered as a dialog" );
10681068
start();
10691069
}
10701070
]);

tests/unit/select/select_cached.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828

2929
function(){
30-
ok( $.mobile.activePage.hasClass('ui-dialog-page'), "the dialog came up" );
30+
ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
3131
var option = $.mobile.activePage.find( "li a" ).not(":contains('" + selectButton.text() + "')").last();
3232
value = option.text();
3333
option.click();
@@ -84,7 +84,7 @@
8484
},
8585

8686
function(){
87-
ok( $.mobile.activePage.hasClass('ui-dialog-page'), "the dialog came up" );
87+
ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
8888
$.mobile.activePage.find( "li a" ).last().click();
8989
},
9090

0 commit comments

Comments
 (0)