Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated unit tests to reflect the new dialog classes

  • Loading branch information...
commit 180ff5d17aa148bf8b96eb858e714e9ac60d6db9 1 parent 2918f18
scottjehl authored
View
2  tests/unit/dialog/dialog_count.js
@@ -6,7 +6,7 @@
test( "When the page loads, any dialogs in the page should be initialized", function() {
expect( 1 );
- ok( $( "#foo-dialog" ).is( ".ui-dialog-page" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
+ ok( $( "#foo-dialog" ).is( ".ui-dialog" ), "When a dialog is the first element in a page, it is created as a dialog widget." );
});
View
2  tests/unit/dialog/dialog_events.js
@@ -28,7 +28,7 @@
ok( /&ui-state=dialog/.test(location.hash), "ui-state=dialog =~ location.hash", "dialog open" );
// close the dialog
- $( ".ui-dialog-page" ).dialog( "close" );
+ $( ".ui-dialog" ).dialog( "close" );
},
function() {
View
2  tests/unit/init/init_dialog.js
@@ -9,7 +9,7 @@
ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
// NOTE this will fail when/if we decide to render it as a dialog
- ok( !$("#foo").hasClass( "ui-dialog-page" ), "the div does NOT have the dialog page class" );
+ ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
});
//NOTE the opposite case is tested everyewhere else in the suite :D
View
2  tests/unit/navigation/navigation_core.js
@@ -1064,7 +1064,7 @@
},
function() {
- ok( $.mobile.activePage.is(".ui-dialog-page"), "prefetched page is rendered as a dialog" );
+ ok( $.mobile.activePage.is(".ui-dialog"), "prefetched page is rendered as a dialog" );
start();
}
]);
View
4 tests/unit/select/select_cached.js
@@ -27,7 +27,7 @@
},
function(){
- ok( $.mobile.activePage.hasClass('ui-dialog-page'), "the dialog came up" );
+ ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
var option = $.mobile.activePage.find( "li a" ).not(":contains('" + selectButton.text() + "')").last();
value = option.text();
option.click();
@@ -84,7 +84,7 @@
},
function(){
- ok( $.mobile.activePage.hasClass('ui-dialog-page'), "the dialog came up" );
+ ok( $.mobile.activePage.hasClass('ui-dialog'), "the dialog came up" );
$.mobile.activePage.find( "li a" ).last().click();
},
Please sign in to comment.
Something went wrong with that request. Please try again.