fixed the last breaking pages unit test

This commit is contained in:
scottjehl 2011-03-31 13:19:51 -04:00
parent 854885e93d
commit b18756eceb
2 changed files with 9 additions and 6 deletions

View file

@ -360,23 +360,24 @@
setTimeout(function(){
same(document.title, "Title Tag");
start();
},1000);
},500);
});
asyncTest( "Page title updates properly when clicking back to previous page", function(){
$.testHelper.openPage("index.html");
window.history.back();
setTimeout(function(){
same(document.title, "jQuery Mobile Navigation Test Suite");
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();
setTimeout(function(){
same(document.title, "Title Tag");
start();
},1500);
},500);
});
@ -385,8 +386,10 @@
setTimeout(function(){
same(document.title, "Title Heading");
start();
},1500);
},500);
});
})(jQuery);

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title Tag</title>
</head>
<body>