mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-19 20:01:52 +00:00
fixed the last breaking pages unit test
This commit is contained in:
parent
854885e93d
commit
b18756eceb
2 changed files with 9 additions and 6 deletions
|
|
@ -360,23 +360,24 @@
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
same(document.title, "Title Tag");
|
same(document.title, "Title Tag");
|
||||||
start();
|
start();
|
||||||
},1000);
|
},500);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest( "Page title updates properly when clicking back to previous page", function(){
|
asyncTest( "Page title updates properly when clicking back to previous page", function(){
|
||||||
|
$.testHelper.openPage("index.html");
|
||||||
window.history.back();
|
window.history.back();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
same(document.title, "jQuery Mobile Navigation Test Suite");
|
same(document.title, "jQuery Mobile Navigation Test Suite");
|
||||||
start();
|
start();
|
||||||
},1500);
|
},500);
|
||||||
});
|
});
|
||||||
|
|
||||||
asyncTest( "Page title updates properly from title element when loading an external page", function(){
|
asyncTest( "Page title updates properly from data-title attr when loading an external page", function(){
|
||||||
$("#titletest2").click();
|
$("#titletest2").click();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
same(document.title, "Title Tag");
|
same(document.title, "Title Tag");
|
||||||
start();
|
start();
|
||||||
},1500);
|
},500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -385,8 +386,10 @@
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
same(document.title, "Title Heading");
|
same(document.title, "Title Heading");
|
||||||
start();
|
start();
|
||||||
},1500);
|
},500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Title Tag</title>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue