aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2016-05-10 12:12:28 +0300
committerOleg Gaidarenko <markelog@gmail.com>2016-06-11 10:41:33 +0300
commit58c6ca9822afa42d3b40cca8edb0abe90a2bcb34 (patch)
treeeb8c4c93031b4f0d88ffe5d58af7d58337c7b116 /test/unit/dimensions.js
parenta4474c9a0025095f82d734a9d7230eace2f08ef8 (diff)
downloadjquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.tar.gz
jquery-58c6ca9822afa42d3b40cca8edb0abe90a2bcb34.zip
Build: ESLint details
Use eslint pragmas, fix new errors, etc Closes gh-3148
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 8d304c435..5741b2af7 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -408,7 +408,7 @@ QUnit.test( "passing undefined is a setter #5571", function( assert ) {
QUnit.test( "setters with and without box-sizing:border-box", function( assert ) {
assert.expect( 120 );
- var parent = jQuery( "#foo" ).css({ width: "200px", height: "200px", "font-size": "16px" }),
+ var parent = jQuery( "#foo" ).css( { width: "200px", height: "200px", "font-size": "16px" } ),
el_bb = jQuery( "<div style='margin:5px;padding:1px;border:2px solid black;box-sizing:border-box;'></div>" ).appendTo( parent ),
el = jQuery( "<div style='margin:5px;padding:1px;border:2px solid black;'></div>" ).appendTo( parent ),
el_bb_np = jQuery( "<div style='margin:5px; padding:0px; border:0px solid green;box-sizing:border-box;'></div>" ).appendTo( parent ),
@@ -520,9 +520,9 @@ QUnit.test( "outside view position (gh-2836)", function( assert ) {
parent.one( "scroll", function() {
var pos = parent.find( "div" ).eq( 3 ).position();
- assert.strictEqual(pos.top, -100);
+ assert.strictEqual( pos.top, -100 );
stop();
- });
+ } );
parent.scrollTop( 400 );
} );