diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2011-09-19 21:03:41 -0400 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-09-19 21:03:41 -0400 |
commit | f60213648cefa9b53289ad01a55ead22a15e6ee1 (patch) | |
tree | 74f93acaba183bd24a9a8beab1efd7e39e862258 /test | |
parent | 9ecdb2472be7661477564e46bce51432d4a5a84e (diff) | |
download | jquery-f60213648cefa9b53289ad01a55ead22a15e6ee1.tar.gz jquery-f60213648cefa9b53289ad01a55ead22a15e6ee1.zip |
Landing pull request 477. 1.7 jQuery.offset.supportsFixedPosition. Fixes #6809.
More Details:
- https://github.com/jquery/jquery/pull/477
- http://bugs.jquery.com/ticket/6809
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/offset.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js index 79a0f3606..adb8a9eca 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -267,8 +267,6 @@ testoffset("static", function( jQuery ) { testoffset("fixed", function( jQuery ) { expect(30); - jQuery.offset.initialize(); - var tests = [ { id: "#fixed-1", top: 1001, left: 1001 }, { id: "#fixed-2", top: 1021, left: 1021 } @@ -403,8 +401,8 @@ testoffset("scroll", function( jQuery, win ) { testoffset("body", function( jQuery ) { expect(2); - equals( jQuery("body").offset().top, 1, "jQuery('#body').offset().top" ); - equals( jQuery("body").offset().left, 1, "jQuery('#body').offset().left" ); + equals( jQuery("body").offset().top, 0, "jQuery('#body').offset().top" ); + equals( jQuery("body").offset().left, 0, "jQuery('#body').offset().left" ); }); test("Chaining offset(coords) returns jQuery object", function() { |