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(){ 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);

View file

@ -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>