Skip to content

Commit b1c8621

Browse files
committed
small tweak to wait for page load in navigation tests
1 parent 05e7bba commit b1c8621

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/navigation/navigation_core.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,25 +205,25 @@
205205
}, 500);
206206
});
207207

208-
test( "when loading a page where data-url is defined on a sub element set the hash with that url", function(){
208+
asyncTest( "when loading a page where data-url is defined on a sub element set the hash with that url", function(){
209209
location.hash = "";
210210
$("#data-url a").click();
211211

212212
setTimeout(function(){
213213
ok(location.hash.indexOf("#foo/") >= 0);
214214
start();
215-
}, 500);
215+
}, 1000);
216216
stop();
217217
});
218218

219-
test( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
219+
asyncTest( "when loading a page where data-url is not defined on a sub element hash defaults to the url", function(){
220220
location.hash = "";
221221
$("#non-data-url a").click();
222222

223223
setTimeout(function(){
224224
ok(location.hash.indexOf("#non-data-url.html") >= 0);
225225
start();
226-
}, 500);
226+
}, 1000);
227227
stop();
228228
});
229229
})(jQuery);

0 commit comments

Comments
 (0)