diff options
author | Brandon Aaron <brandon.aaron@gmail.com> | 2008-05-15 23:36:06 +0000 |
---|---|---|
committer | Brandon Aaron <brandon.aaron@gmail.com> | 2008-05-15 23:36:06 +0000 |
commit | 2c2a6253e3744983741882ca4565a20b4b0b3f42 (patch) | |
tree | bc522dec7deeb1bb9744693c1bdc1ab121e0b125 | |
parent | c5f4d70e2ba039759ab6d889893d4feb1cca3c52 (diff) | |
download | jquery-2c2a6253e3744983741882ca4565a20b4b0b3f42.tar.gz jquery-2c2a6253e3744983741882ca4565a20b4b0b3f42.zip |
Updating unit tests for offset
-rw-r--r-- | test/data/offset/fixed.html | 1 | ||||
-rw-r--r-- | test/data/offset/scroll.html | 2 | ||||
-rw-r--r-- | test/data/offset/static.html | 2 | ||||
-rw-r--r-- | test/data/offset/table.html | 2 |
4 files changed, 5 insertions, 2 deletions
diff --git a/test/data/offset/fixed.html b/test/data/offset/fixed.html index 15855763b..8d69aae94 100644 --- a/test/data/offset/fixed.html +++ b/test/data/offset/fixed.html @@ -28,5 +28,6 @@ <div id="fixed-2" class="fixed"></div> <div id="forceScroll"></div> <div id="marker"></div> + <p class="instructions">Click the white box to move the marker to it.</p> </body> </html>
\ No newline at end of file diff --git a/test/data/offset/scroll.html b/test/data/offset/scroll.html index d65e0b9af..494f64058 100644 --- a/test/data/offset/scroll.html +++ b/test/data/offset/scroll.html @@ -34,6 +34,6 @@ </div> <div id="forceScroll"></div> <div id="marker"></div> - <p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p> + <p class="instructions">Click the white box to move the marker to it.</p> </body> </html>
\ No newline at end of file diff --git a/test/data/offset/static.html b/test/data/offset/static.html index bce715ea0..10116af65 100644 --- a/test/data/offset/static.html +++ b/test/data/offset/static.html @@ -15,6 +15,8 @@ $(function() { $('.static').click(function() { $('#marker').css( $(this).offset() ); + var pos = $(this).position(); + $(this).css({ position: 'absolute', top: pos.top, left: pos.left }); return false; }); }); diff --git a/test/data/offset/table.html b/test/data/offset/table.html index de4c728eb..5d15b903b 100644 --- a/test/data/offset/table.html +++ b/test/data/offset/table.html @@ -38,6 +38,6 @@ </tbody> </table> <div id="marker"></div> - <p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p> + <p class="instructions">Click the white box to move the marker to it.</p> </body> </html>
\ No newline at end of file |