aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2014-12-05 12:28:40 -0500
committerRichard Gibson <richard.gibson@gmail.com>2014-12-05 12:34:17 -0500
commit26276a307ce2f554b63a05ed8451155f01711c29 (patch)
tree81eb4c92a55f4c9a17d9925e84dccf9c4929741f /test/unit/dimensions.js
parent6748ba349650353c7bed6eec201a3192f6b2cae1 (diff)
downloadjquery-26276a307ce2f554b63a05ed8451155f01711c29.tar.gz
jquery-26276a307ce2f554b63a05ed8451155f01711c29.zip
Tests: Minor updates for QUnit 1.16 compatibility
More to come later. (cherry picked from commit f6f8848fbe477fa93fd27ac7f10885dd6e97f633)
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 7d37e13bc..3f4e15b9e 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -57,7 +57,7 @@ function testWidth( val ) {
equal( jQuery(window).width(), document.documentElement.clientWidth, "Window width is equal to width reported by window/document." );
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
}
test("width()", function() {
@@ -110,7 +110,7 @@ function testHeight( val ) {
equal( jQuery(window).height(), document.documentElement.clientHeight, "Window width is equal to width reported by window/document." );
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
}
test("height()", function() {
@@ -166,7 +166,7 @@ test("innerWidth()", function() {
equal( div.innerWidth(), 0, "Make sure that disconnected nodes are handled." );
div.remove();
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
});
test("innerHeight()", function() {
@@ -202,7 +202,7 @@ test("innerHeight()", function() {
equal( div.innerHeight(), 0, "Make sure that disconnected nodes are handled." );
div.remove();
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
});
test("outerWidth()", function() {
@@ -241,7 +241,7 @@ test("outerWidth()", function() {
equal( div.outerWidth(), 0, "Make sure that disconnected nodes are handled." );
div.remove();
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
});
test("child of a hidden elem (or unconnected node) has accurate inner/outer/Width()/Height() see #9441 #9300", function() {
@@ -388,7 +388,7 @@ test("outerHeight()", function() {
equal( div.outerHeight(), 0, "Make sure that disconnected nodes are handled." );
div.remove();
- QUnit.expectJqData( $div[0], "olddisplay" );
+ QUnit.expectJqData( this, $div[0], "olddisplay" );
});
test("passing undefined is a setter #5571", function() {