Skip to content
Permalink
Browse files

Tests: Fix style issues with missing or multiple line breaks

As pointed out by jscs, after a esformatter run. The latter doesn't
address these, so fixing them manually.
  • Loading branch information
jzaefferer committed Jan 24, 2015
1 parent ac49929 commit 2aabd427ebb307319f3203aab3f989d7305fd00d
@@ -216,8 +216,6 @@ asyncTest( "ESCAPE in multiline autocomplete", function() {
}, 50 );
});



asyncTest( "handle race condition", function() {
expect( 3 );
var count = 0,
@@ -2,7 +2,6 @@
* button_core.js
*/


(function($) {

module("button: core");
@@ -3,7 +3,6 @@
*/
(function($) {


module("button: methods");

test("destroy", function() {
@@ -767,7 +767,6 @@ var beforeShowThis = null,
beforeShowDayThis = null,
beforeShowDayOK = true;


function beforeAll(input, inst) {
beforeShowThis = this;
beforeShowInput = input;
@@ -24,4 +24,4 @@ TestHelpers.datepicker = {
},
onFocus: TestHelpers.onFocus,
PROP_NAME: "datepicker"
};
};
@@ -39,7 +39,6 @@ test("open", function() {
element.remove();
});


test( "focus", function() {
expect( 5 );
var element, other;
@@ -35,8 +35,6 @@ test( "droppable destruction/recreation on drop event", function() {
ok( !droppable2.hasClass( "active" ), "subsequent droppable no longer active" );
});



// todo: comment the following in when ready to actually test
/*
test("activate", function() {
@@ -7,4 +7,4 @@ TestHelpers.droppable = {
// todo: actually implement this
ok(true, "missing test - untested code is broken code");
}
};
};
@@ -169,7 +169,6 @@ asyncTest( "handle submenu auto collapse: mouseleave", function() {
setTimeout( menumouseleave1, 350 );
});


asyncTest( "handle keyboard navigation on menu without scroll and without submenus", function() {
expect( 12 );
var element = $( "#menu1" ).menu({
@@ -24,7 +24,6 @@ test( "alsoResize", function() {
equal( other.width(), 130, "alsoResize width" );
});


test("aspectRatio: 'preserve' (e)", function() {
expect(4);

@@ -8,4 +8,4 @@ TestHelpers.resizable = {
dy: dy
});
}
};
};
@@ -1,3 +1,3 @@
/*
* selectable_core.js
*/
*/
@@ -51,7 +51,6 @@ test("filter", function() {
sel = $("*", el),
selected = function() { actual += 1; };


el = $("#selectable1").selectable({ filter: ".special", selected: selected });
el.simulate( "drag", {
dx: 1000,
@@ -52,7 +52,6 @@ asyncTest( "accessibility", function() {
});
});


test( "_renderButtonItem()", function() {
expect( 2 );

@@ -67,7 +67,6 @@ test( "appendTo: ui-front", function() {
$( "#selectmenu-wrap2" )[ 0 ], "empty jQuery object, inside .ui-front" );
});


test( "CSS styles", function() {
expect( 2 );

@@ -85,7 +84,6 @@ test( "CSS styles", function() {
"menu styles dropdown" );
});


test( "width", function() {
expect( 5 );

@@ -26,8 +26,6 @@ test("start", function() {
// todo: see if these events should actually have sane values in them
ok("position" in hash, "UI hash includes: position");
ok("offset" in hash, "UI hash includes: offset");


});

test("sort", function() {
@@ -6,4 +6,4 @@ TestHelpers.sortable = {
});
equal( $( handle ).parent().children().index( handle ), index, msg );
}
};
};
@@ -5,4 +5,3 @@ TestHelpers.spinner = {
.simulate( "keyup", { keyCode: keyCode, shiftKey: shift || false } );
}
};

@@ -362,5 +362,4 @@ asyncTest( "hide and show - animation", function() {
element.tabs( "option", "active", 1 );
});


}( jQuery ) );
@@ -64,4 +64,3 @@ TestHelpers.tabs = {
deepEqual( actual, expected );
}
};

@@ -27,7 +27,6 @@ QUnit.reset = function() {
reset.apply( this, arguments );
};


QUnit.config.requireExpects = true;

/*

0 comments on commit 2aabd42

Please sign in to comment.
You can’t perform that action at this time.