2 * mobile dialog unit tests
5 module( "jquery.mobile.dialog.js", {
7 $.mobile.page.prototype.options.contentTheme = "d";
11 asyncTest( "dialog opens and closes correctly when hash handling is off", function() {
16 $.testHelper.pageSequence([
18 $.mobile.changePage( $( "#mypage" ) );
22 activePage = $.mobile.activePage;
24 $( "#dialog-no-hash-link" ).click();
28 // make sure the dialog came up
29 ok( $( "#dialog-no-hash" ).is( ":visible" ), "dialog showed up" );
32 $( "#dialog-no-hash a" ).click();
36 ok( !$( "#dialog-no-hash" ).is( ":visible" ), "dialog disappeared" );
37 ok( $.mobile.activePage[0] === activePage[0], "active page has been restored" );