Bug Tracker

Changeset 5615

Show
Ignore:
Timestamp:
05/15/08 23:36:06 (4 months ago)
Author:
brandon.aaron
Message:

Updating unit tests for offset

Location:
trunk/jquery/test/data/offset
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/test/data/offset/fixed.html

    r4120 r5615  
    2929        <div id="forceScroll"></div> 
    3030        <div id="marker"></div> 
     31        <p class="instructions">Click the white box to move the marker to it.</p> 
    3132    </body> 
    3233</html> 
  • trunk/jquery/test/data/offset/scroll.html

    r5612 r5615  
    3535        <div id="forceScroll"></div> 
    3636        <div id="marker"></div> 
    37         <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> 
     37        <p class="instructions">Click the white box to move the marker to it.</p> 
    3838    </body> 
    3939</html> 
  • trunk/jquery/test/data/offset/static.html

    r5612 r5615  
    1616                $('.static').click(function() { 
    1717                    $('#marker').css( $(this).offset() ); 
     18                    var pos = $(this).position(); 
     19                    $(this).css({ position: 'absolute', top: pos.top, left: pos.left }); 
    1820                    return false; 
    1921                }); 
  • trunk/jquery/test/data/offset/table.html

    r5612 r5615  
    3939        </table> 
    4040        <div id="marker"></div> 
    41         <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> 
     41        <p class="instructions">Click the white box to move the marker to it.</p> 
    4242    </body> 
    4343</html>