diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-11-11 19:34:24 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-11-11 19:34:24 +0300 |
commit | 999010b2e7abeb493f70bb0d820c8c924a2a36c3 (patch) | |
tree | 3ea3ea7a6998416352457ed0f84f576efcd67ec4 | |
parent | 951c4eafa520d1ad51d243ca6dd3f1675336714e (diff) | |
download | jquery-999010b2e7abeb493f70bb0d820c8c924a2a36c3.tar.gz jquery-999010b2e7abeb493f70bb0d820c8c924a2a36c3.zip |
Revert "Revert "Offset: allow offset setter to throw for disconnected elements""
This reverts commit 578dcee96a8d4d759b3a7e623177fa36a5133ba7.
-rw-r--r-- | test/unit/core.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/unit/core.js b/test/unit/core.js index ee17b70b0..3507dee8f 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -36,10 +36,6 @@ QUnit.test( "jQuery()", function( assert ) { expected++; attrObj[ "width" ] = 10; } - if ( jQuery.fn.offset ) { - expected++; - attrObj[ "offset" ] = { "top": 1, "left": 1 }; - } if ( jQuery.fn.css ) { expected += 2; attrObj[ "css" ] = { "paddingLeft": 1, "paddingRight": 1 }; @@ -111,10 +107,6 @@ QUnit.test( "jQuery()", function( assert ) { assert.equal( elem[ 0 ].style.width, "10px", "jQuery() quick setter width" ); } - if ( jQuery.fn.offset ) { - assert.equal( elem[ 0 ].style.top, "1px", "jQuery() quick setter offset" ); - } - if ( jQuery.fn.css ) { assert.equal( elem[ 0 ].style.paddingLeft, "1px", "jQuery quick setter css" ); assert.equal( elem[ 0 ].style.paddingRight, "1px", "jQuery quick setter css" ); |