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.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index ed3d9622a..879753181 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -1,5 +1,14 @@
module("offset");
+test("disconnected node", function() {
+ expect(2);
+
+ var result = jQuery( document.createElement("div") ).offset();
+
+ equals( result.top, 0, "Check top" );
+ equals( result.left, 0, "Check left" );
+});
+
var supportsScroll = false;
testoffset("absolute"/* in iframe */, function($, iframe) {