aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/offset.js
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-09-28 11:30:38 -0400
committertimmywil <timmywillisn@gmail.com>2011-09-28 11:30:38 -0400
commit3661835101865b08fae20df7458ba03551b86bc3 (patch)
tree132942cf9b847f9a038196b35d69f7365267de9d /test/unit/offset.js
parent649823de18564774a5812ae04083606447bd2b93 (diff)
downloadjquery-3661835101865b08fae20df7458ba03551b86bc3.tar.gz
jquery-3661835101865b08fae20df7458ba03551b86bc3.zip
Fixes IE7 test suite. Keep the testElement attached and set necessary styles on it to fix the offset with margin test.
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r--test/unit/offset.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index adb8a9eca..a31d058a4 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -401,8 +401,8 @@ testoffset("scroll", function( jQuery, win ) {
testoffset("body", function( jQuery ) {
expect(2);
- equals( jQuery("body").offset().top, 0, "jQuery('#body').offset().top" );
- equals( jQuery("body").offset().left, 0, "jQuery('#body').offset().left" );
+ equals( jQuery("body").offset().top, 1, "jQuery('#body').offset().top" );
+ equals( jQuery("body").offset().left, 1, "jQuery('#body').offset().left" );
});
test("Chaining offset(coords) returns jQuery object", function() {