This commit is contained in:
Kin Blas 2011-03-25 23:47:32 -07:00
commit 004860c209
3 changed files with 5 additions and 5 deletions

View file

@ -254,6 +254,7 @@
else{
// defer execution for consistency between webkit/non webkit
setTimeout(callback, 0);
return $(this);
}
};

View file

@ -11,7 +11,7 @@
"swipe swipeleft swiperight scrollstart scrollstop").split( " " );
module(libName, {
teardown: function(){
setup: function(){
// ensure bindings are removed
$.each(events, function(i, name){
@ -247,7 +247,6 @@
$($.event.special.swipe).bind('swipe', function(){
swipe = true;
start();
});
//NOTE bypass the trigger source check
@ -270,7 +269,7 @@
same(swipe, opts.expected, "swipe expected");
//NOTE the start in the event closure won't be fired, fire it here
if(!opts.expected) { start(); }
start();
}, opts.timeout + 10);
stop();

View file

@ -31,7 +31,7 @@
});
asyncTest( "Slides back to main page when back button is clicked", function() {
$.testHelper.openPage("#basic-linked-results");
$.testHelper.openPage("#basic-link-results");
$('#basic-link-results a:contains("Back")').click();
setTimeout(function() {
@ -227,7 +227,7 @@
}, 500);
setTimeout(function() {
same($searchPage.find('li[style^="display: none;"]').length, 0);
same($searchPage.find("li[style^='display: none;']").length, 0);
start();
}, 1000);
});