Skip to content

Commit b18756e

Browse files
author
scottjehl
committed
fixed the last breaking pages unit test
1 parent 854885e commit b18756e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

tests/unit/navigation/navigation_core.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,23 +360,24 @@
360360
setTimeout(function(){
361361
same(document.title, "Title Tag");
362362
start();
363-
},1000);
363+
},500);
364364
});
365365

366366
asyncTest( "Page title updates properly when clicking back to previous page", function(){
367+
$.testHelper.openPage("index.html");
367368
window.history.back();
368369
setTimeout(function(){
369370
same(document.title, "jQuery Mobile Navigation Test Suite");
370371
start();
371-
},1500);
372+
},500);
372373
});
373374

374-
asyncTest( "Page title updates properly from title element when loading an external page", function(){
375+
asyncTest( "Page title updates properly from data-title attr when loading an external page", function(){
375376
$("#titletest2").click();
376377
setTimeout(function(){
377378
same(document.title, "Title Tag");
378379
start();
379-
},1500);
380+
},500);
380381
});
381382

382383

@@ -385,8 +386,10 @@
385386
setTimeout(function(){
386387
same(document.title, "Title Heading");
387388
start();
388-
},1500);
389+
},500);
389390
});
391+
392+
390393

391394
})(jQuery);
392395

tests/unit/navigation/title2.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>Title Tag</title>
5+
66
</head>
77
<body>
88

0 commit comments

Comments
 (0)