mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-09 00:50:58 +00:00
added test to make sure the dialog key is always in the hash
This commit is contained in:
parent
3a13a6ec75
commit
7ed31bedb5
1 changed files with 24 additions and 1 deletions
|
|
@ -692,6 +692,30 @@
|
|||
]);
|
||||
});
|
||||
|
||||
asyncTest( "dialog ui-state should be part of the hash", function(){
|
||||
$.testHelper.sequence([
|
||||
function() {
|
||||
// open the test page
|
||||
$.testHelper.openPage("#nested-dialog-page");
|
||||
},
|
||||
|
||||
function() {
|
||||
// open the dialog
|
||||
$("#nested-dialog-page a").click();
|
||||
},
|
||||
|
||||
function() {
|
||||
// verify that the hash contains the dialogHashKey
|
||||
ok( location.hash.search($.mobile.dialogHashKey) >= 0 );
|
||||
$.testHelper.openPage( "#" + home );
|
||||
},
|
||||
|
||||
function() {
|
||||
start();
|
||||
}
|
||||
]);
|
||||
});
|
||||
|
||||
asyncTest( "handling of button active state when navigating by clicking back button", 1, function(){
|
||||
|
||||
$.testHelper.pageSequence([
|
||||
|
|
@ -718,5 +742,4 @@
|
|||
}
|
||||
]);
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Reference in a new issue