diff options
author | timmywil <timmywillisn@gmail.com> | 2011-09-28 11:30:38 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-28 11:30:38 -0400 |
commit | 3661835101865b08fae20df7458ba03551b86bc3 (patch) | |
tree | 132942cf9b847f9a038196b35d69f7365267de9d /test/unit/offset.js | |
parent | 649823de18564774a5812ae04083606447bd2b93 (diff) | |
download | jquery-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.js | 4 |
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() { |