mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
whitespace fix for nav core tests
This commit is contained in:
parent
56c0b9de36
commit
150697c8d2
1 changed files with 18 additions and 18 deletions
|
|
@ -789,36 +789,36 @@
|
|||
});
|
||||
|
||||
asyncTest( "clicks with middle mouse button are ignored", function() {
|
||||
$.testHelper.pageSequence([
|
||||
$.testHelper.pageSequence([
|
||||
function() {
|
||||
$.testHelper.openPage( "#odd-clicks-page" );
|
||||
},
|
||||
|
||||
function() {
|
||||
$( "#right-or-middle-click" ).click();
|
||||
},
|
||||
function() {
|
||||
$( "#right-or-middle-click" ).click();
|
||||
},
|
||||
|
||||
// make sure the page is opening first without the mocked button click value
|
||||
// only necessary to prevent issues with test specific fixtures
|
||||
function() {
|
||||
same($.mobile.activePage[0], $("#odd-clicks-page-dest")[0]);
|
||||
// make sure the page is opening first without the mocked button click value
|
||||
// only necessary to prevent issues with test specific fixtures
|
||||
function() {
|
||||
same($.mobile.activePage[0], $("#odd-clicks-page-dest")[0]);
|
||||
$.testHelper.openPage( "#odd-clicks-page" );
|
||||
|
||||
// mock the which value to simulate a middle click
|
||||
$.Event.prototype.which = 2;
|
||||
},
|
||||
// mock the which value to simulate a middle click
|
||||
$.Event.prototype.which = 2;
|
||||
},
|
||||
|
||||
function() {
|
||||
$( "#right-or-middle-click" ).click();
|
||||
},
|
||||
function() {
|
||||
$( "#right-or-middle-click" ).click();
|
||||
},
|
||||
|
||||
function( timeout ) {
|
||||
function( timeout ) {
|
||||
ok( timeout, "page event handler timed out due to ignored click" );
|
||||
ok($.mobile.activePage[0] !== $("#odd-clicks-page-dest")[0], "pages are not the same");
|
||||
ok($.mobile.activePage[0] !== $("#odd-clicks-page-dest")[0], "pages are not the same");
|
||||
start();
|
||||
}
|
||||
}
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
asyncTest( "handling of button active state when navigating by clicking back button", 1, function(){
|
||||
$.testHelper.pageSequence([
|
||||
|
|
|
|||
Loading…
Reference in a new issue