Permalink
Browse files

make sure the test runs before the test suite has moved on

  • Loading branch information...
1 parent 047e1dd commit c7b8e25c5982570ad0a9774e5ef8a007f175b7a2 @johnbender johnbender committed Apr 20, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 tests/unit/navigation/navigation_core.js
View
7 tests/unit/navigation/navigation_core.js
@@ -465,7 +465,7 @@
}]);
});
- asyncTest( "opening a dialog, closing it, moving forward, and opening it again, does not result in a dialog that needs to be closed twice ", function() {
+ asyncTest( "opening a dialog, closing it, moving forward, and opening it again, does not result in a dialog that needs to be closed twice", function() {
$.testHelper.pageSequence([
// setup
function(){ $.testHelper.openPage("#dialog-double-hash-test"); },
@@ -491,9 +491,10 @@
function() {
setTimeout( function() {
same($("#dialog-double-hash-test")[0], $.mobile.activePage[0], "should be back to the test page");
+ start();
}, 300);
- start();
- }]);
+ }
+ ]);
});
asyncTest( "going back from a dialog triggered from a dialog should result in the first dialog ", function(){

0 comments on commit c7b8e25

Please sign in to comment.