From: Brandon Aaron Date: Tue, 4 Dec 2007 21:29:28 +0000 (+0000) Subject: Added another relative offset test X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=c424e79ccb3695c6ff599e77bec867c6644ccc98;p=jquery.git Added another relative offset test --- diff --git a/test/data/offset/relative.html b/test/data/offset/relative.html index dc78976..8a2aa93 100644 --- a/test/data/offset/relative.html +++ b/test/data/offset/relative.html @@ -21,12 +21,8 @@ -
relative-1 -
relative-1-1 -
relative-1-1-1
-
-
-
relative-2
+
+
\ No newline at end of file diff --git a/test/unit/offset.js b/test/unit/offset.js index 835df89..857e089 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -44,6 +44,9 @@ testwin("relative", function() { equals( $w('#relative-1').offset().top, jQuery.browser.msie ? 6 : 7, "$('#relative-1').offset().top" ); equals( $w('#relative-1').offset().left, 7, "$('#relative-1').offset().left" ); + equals( $w('#relative-1-1').offset().top, jQuery.browser.msie ? 13 : 15, "$('#relative-1-1').offset().top" ); + equals( $w('#relative-1-1').offset().left, 15, "$('#relative-1-1').offset().left" ); + equals( $w('#relative-2').offset().top, jQuery.browser.msie ? 141 : 142, "$('#relative-2').offset().top" ); equals( $w('#relative-2').offset().left, 27, "$('#relative-2').offset().left" );