Added another relative offset test
This commit is contained in:
parent
4fc2971019
commit
c424e79ccb
|
@ -21,12 +21,8 @@
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="relative-1" class="relative">relative-1
|
<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-1-1" class="relative">relative-1-1
|
<div id="relative-2" class="relative"></div>
|
||||||
<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="marker"></div>
|
<div id="marker"></div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</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().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').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().top, jQuery.browser.msie ? 141 : 142, "$('#relative-2').offset().top" );
|
||||||
equals( $w('#relative-2').offset().left, 27, "$('#relative-2').offset().left" );
|
equals( $w('#relative-2').offset().left, 27, "$('#relative-2').offset().left" );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue