mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
fixed some logical errors in these tests. they now pass consistently in Firefox. Still inconsistent in Chrome, though they did pass once in Chrome during testing. Getting closer...
This commit is contained in:
parent
7b1966c850
commit
2de817d24c
1 changed files with 7 additions and 11 deletions
|
|
@ -15,10 +15,7 @@
|
|||
|
||||
asyncTest( "a large select menu should use the default dialog transition", function(){
|
||||
var select = $("#select-choice-many-container-1 a"),
|
||||
prevDefault = $.mobile.defaultDialogTransition,
|
||||
menu;
|
||||
|
||||
|
||||
prevDefault = $.mobile.defaultDialogTransition;
|
||||
|
||||
//set to something else
|
||||
$.mobile.defaultDialogTransition = "fooz";
|
||||
|
|
@ -27,8 +24,8 @@
|
|||
function(){
|
||||
// bring up the dialog
|
||||
select.trigger("click");
|
||||
ok( $("#select-choice-many-1").closest(".ui-page").hasClass( $.mobile.defaultDialogTransition ) );
|
||||
window.history.back();
|
||||
ok( $("#select-choice-many-1-menu").closest(".ui-page").hasClass( $.mobile.defaultDialogTransition ) );
|
||||
$("#select-choice-many-1").selectmenu("close");
|
||||
},
|
||||
|
||||
function(){
|
||||
|
|
@ -53,7 +50,7 @@
|
|||
|
||||
function(){
|
||||
// select and close the dialog
|
||||
menu.closest('.ui-dialog').dialog("close");
|
||||
$("#select-choice-many-menu").selectmenu("close");
|
||||
},
|
||||
|
||||
function(){
|
||||
|
|
@ -62,14 +59,13 @@
|
|||
},
|
||||
|
||||
function(){
|
||||
same(menu.parents('.ui-dialog').length, 1);
|
||||
console.log(menu)
|
||||
menu.closest('.ui-dialog').dialog("close");
|
||||
same(menu.closest('.ui-dialog').length, 1);
|
||||
$("#select-choice-many-menu").selectmenu("close");
|
||||
},
|
||||
function(){
|
||||
start();
|
||||
}
|
||||
], 1000);
|
||||
], 500);
|
||||
});
|
||||
|
||||
asyncTest( "custom select menu always renders screen from the left", function(){
|
||||
|
|
|
|||
Loading…
Reference in a new issue