From 32f1264491321a16363e86607b63e9ca6f189f9d Mon Sep 17 00:00:00 2001 From: John Bender Date: Wed, 30 Mar 2011 00:49:22 -0700 Subject: [PATCH] corrected poor async start order --- tests/unit/navigation/navigation_core.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/navigation/navigation_core.js b/tests/unit/navigation/navigation_core.js index d7d32021..fcc45adc 100644 --- a/tests/unit/navigation/navigation_core.js +++ b/tests/unit/navigation/navigation_core.js @@ -19,8 +19,8 @@ stop(); $('#non-ajax-form').live('submit', function(event){ ok(true, 'submit callbacks are fired'); - start(); event.preventDefault(); + start(); }).submit(); ok(!called, "change page should not be called"); @@ -50,9 +50,9 @@ $( "test" ).appendTo( $.mobile.firstPage ).click(); setTimeout(function(){ - start(); same(fired, false, "hash shouldn't change after click"); $(window).unbind("hashchange.temp"); + start(); }, 500); }); @@ -175,10 +175,10 @@ }); location.hash = "foozball"; setTimeout(function(){ - start(); ok( prop == stillListening, prop + " = false disables default hashchange event handler"); location.hash = ""; prop = true; + start(); }, 1000); } @@ -200,8 +200,8 @@ $('#foo a').click(); setTimeout(function(){ - start(); ok(called == 1, "change page should be called once"); + start(); }, 500); });