mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-26 14:53:59 +00:00
corrected failing tests in navigation
This commit is contained in:
parent
db422561f7
commit
202ed5ff2c
1 changed files with 10 additions and 12 deletions
|
|
@ -50,7 +50,6 @@
|
||||||
test( "explicit transition preferred for page navigation reversal (ie back)", function(){
|
test( "explicit transition preferred for page navigation reversal (ie back)", function(){
|
||||||
$.fn.animationComplete = function(){};
|
$.fn.animationComplete = function(){};
|
||||||
|
|
||||||
stop();
|
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
$("#fade-trans > a").click();
|
$("#fade-trans > a").click();
|
||||||
}, 300);
|
}, 300);
|
||||||
|
|
@ -59,27 +58,26 @@
|
||||||
$("#flip-trans > a").click();
|
$("#flip-trans > a").click();
|
||||||
}, 600);
|
}, 600);
|
||||||
|
|
||||||
|
//guarantee that we check only the newest changes
|
||||||
|
removePageTransClasses();
|
||||||
|
$("#fade-trans > a").click();
|
||||||
|
|
||||||
|
stop();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
//guarantee that we check only the newest changes
|
|
||||||
removePageTransClasses();
|
|
||||||
|
|
||||||
$("#fade-trans > a").click();
|
|
||||||
|
|
||||||
ok($("#flip-trans").hasClass("fade"), "has fade class");
|
ok($("#flip-trans").hasClass("fade"), "has fade class");
|
||||||
|
|
||||||
start();
|
start();
|
||||||
}, 900);
|
}, 900);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
test( "default transition is slide", function(){
|
test( "default transition is slide", function(){
|
||||||
|
//guarantee that we check only the newest changes
|
||||||
|
removePageTransClasses();
|
||||||
|
$("#default-trans > a").click();
|
||||||
|
|
||||||
stop();
|
stop();
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
//guarantee that we check only the newest changes
|
|
||||||
removePageTransClasses();
|
|
||||||
|
|
||||||
$("#default-trans > a").click();
|
|
||||||
|
|
||||||
ok($("#no-trans").hasClass("slide"), "has slide class");
|
ok($("#no-trans").hasClass("slide"), "has slide class");
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue