Skip to content
Permalink
Browse files

Added another relative offset test

  • Loading branch information
brandonaaron committed Dec 4, 2007
1 parent 4fc2971 commit c424e79ccb3695c6ff599e77bec867c6644ccc98
Showing with 5 additions and 6 deletions.
  1. +2 −6 test/data/offset/relative.html
  2. +3 −0 test/unit/offset.js
@@ -21,12 +21,8 @@
</script>
</head>
<body>
<div id="relative-1" class="relative">relative-1
<div id="relative-1-1" class="relative">relative-1-1
<div id="relative-1-1-1" class="relative">relative-1-1-1</div>
</div>
</div>
<div id="relative-2" class="relative">relative-2</div>
<div id="relative-1" class="relative"><div id="relative-1-1" class="relative"><div id="relative-1-1-1" class="relative"></div></div></div>
<div id="relative-2" class="relative"></div>
<div id="marker"></div>
</body>
</html>
@@ -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" );

0 comments on commit c424e79

Please sign in to comment.
You can’t perform that action at this time.