aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-04 14:11:17 -0700
committerDave Methvin <dave.methvin@gmail.com>2011-08-04 14:11:17 -0700
commit5f54cb706625b8eb006fb8c420d0713e9cb0db01 (patch)
tree5f520bc553bcd4e8e3f1417a8f1b63e80ecd877d /test/unit
parentdd3662d0ff0ac46d86e339ffeae67e956302f163 (diff)
parent06c41e09bd92a7d3ea099fdbbdfcced372602239 (diff)
downloadjquery-5f54cb706625b8eb006fb8c420d0713e9cb0db01.tar.gz
jquery-5f54cb706625b8eb006fb8c420d0713e9cb0db01.zip
Merge pull request #448 from rwldrn/9912
Renames duplicate named test block. Fixes #9912
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/offset.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js
index ea1a49332..ea9d8de50 100644
--- a/test/unit/offset.js
+++ b/test/unit/offset.js
@@ -11,7 +11,7 @@ test("disconnected node", function() {
var supportsScroll = false;
-testoffset("absolute"/* in iframe */, function($, iframe) {
+testoffset("absolute (in iframe)", function($, iframe) {
expect(4);
var doc = iframe.document, tests;
@@ -390,7 +390,7 @@ testoffset("scroll", function( jQuery, win ) {
equals( jQuery(window).scrollLeft(), 0, "jQuery(window).scrollLeft() other window" );
equals( jQuery(document).scrollTop(), 0, "jQuery(window).scrollTop() other document" );
equals( jQuery(document).scrollLeft(), 0, "jQuery(window).scrollLeft() other document" );
-
+
// Tests scrollTop/Left with empty jquery objects
notEqual( jQuery().scrollTop(100), null, "jQuery().scrollTop(100) testing setter on empty jquery object" );
notEqual( jQuery().scrollLeft(100), null, "jQuery().scrollLeft(100) testing setter on empty jquery object" );
@@ -443,12 +443,12 @@ test("offsetParent", function(){
test("fractions (see #7730 and #7885)", function() {
expect(2);
-
+
jQuery('body').append('<div id="fractions"/>');
-
+
var expected = { top: 1000, left: 1000 };
var div = jQuery('#fractions');
-
+
div.css({
position: 'absolute',
left: '1000.7432222px',
@@ -456,14 +456,14 @@ test("fractions (see #7730 and #7885)", function() {
width: 100,
height: 100
});
-
+
div.offset(expected);
-
+
var result = div.offset();
equals( result.top, expected.top, "Check top" );
equals( result.left, expected.left, "Check left" );
-
+
div.remove();
});