diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/offset.js | 4 | ||||
-rw-r--r-- | test/unit/support.js | 2 |
2 files changed, 3 insertions, 3 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() { diff --git a/test/unit/support.js b/test/unit/support.js index 4733b2529..50a40e4a0 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -47,7 +47,7 @@ supportIFrameTest( "body background is not lost if set prior to loading jQuery ( } for ( i in support ) { if ( !( i in jQuery.support ) ) { - ok = false; + passed = false; strictEqual( src[ i ], dest[ i ], "Unexpected property: " + i ); } } |