From 150697c8d26409dac9d3c7785e85abc569c00108 Mon Sep 17 00:00:00 2001 From: John Bender Date: Thu, 15 Sep 2011 15:12:52 -0700 Subject: [PATCH] whitespace fix for nav core tests --- tests/unit/navigation/navigation_core.js | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/tests/unit/navigation/navigation_core.js b/tests/unit/navigation/navigation_core.js index 0b50b120..d53e2df5 100644 --- a/tests/unit/navigation/navigation_core.js +++ b/tests/unit/navigation/navigation_core.js @@ -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([