From 1bbbcc723c489d7ef7d72bb62564b8f07805c41c Mon Sep 17 00:00:00 2001 From: Thomas Meyer Date: Thu, 5 Sep 2013 00:13:53 +0200 Subject: Position: Avoid reading overflow css on documents Fixes #9533 Closes gh-1072 --- tests/unit/position/position_core.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/unit/position') diff --git a/tests/unit/position/position_core.js b/tests/unit/position/position_core.js index e03d4c111..5b1872af9 100644 --- a/tests/unit/position/position_core.js +++ b/tests/unit/position/position_core.js @@ -575,7 +575,14 @@ test( "collision: flip, with margin", function() { }); test( "within", function() { - expect( 6 ); + expect( 7 ); + + collisionTest({ + within: document + }, { + top: 10, + left: 10 + }, "within document" ); collisionTest({ within: "#within", -- cgit v1.2.3