aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/position/position_core.js9
1 files changed, 8 insertions, 1 deletions
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",