aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r--test/unit/offset.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index 8e0cd7275..61f762eea 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -771,12 +771,12 @@ QUnit.test( "offsetParent", function( assert ) {
assert.equal( div[ 0 ], document.documentElement, "The html element is the offsetParent of the body." );
assert.equal( div[ 1 ], jQuery( "#nothiddendiv" )[ 0 ], "The div is the offsetParent." );
- area = jQuery( "#imgmap area" ).offsetParent();
- assert.equal( area[ 0 ], document.documentElement, "The html element is the offsetParent of the body." );
+ area = jQuery( "<map name=\"imgmap\"><area shape=\"rect\" coords=\"0,0,200,50\"></map>" ).appendTo( "body" ).find( "area" );
+ assert.equal( area.offsetParent()[ 0 ], document.documentElement, "The html element is the offsetParent of a map area." );
+ area.remove();
div = jQuery( "<div>" ).css( { "position": "absolute" } ).appendTo( "body" );
assert.equal( div.offsetParent()[ 0 ], document.documentElement, "Absolutely positioned div returns html as offset parent, see #12139" );
-
div.remove();
} );