aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-04-27 11:22:01 -0400
committerRick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>2012-04-27 11:22:01 -0400
commit6fbb4b4339a6ae51423d9600ef3517b594bec523 (patch)
tree83ce546e03ab03b98d17d32c07d7143bf4a20e4f /test
parent6e066a4db72ff6b0d12dd8a43faec0a80e4a1fed (diff)
downloadjquery-6fbb4b4339a6ae51423d9600ef3517b594bec523.tar.gz
jquery-6fbb4b4339a6ae51423d9600ef3517b594bec523.zip
Update dimensions unit tests from changes in #11604
Diffstat (limited to 'test')
-rw-r--r--test/unit/dimensions.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index ef3d8ca68..842072cd4 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -17,12 +17,12 @@ function testWidth( val ) {
$div.hide();
equal($div.width(), 30, "Test hidden div");
$div.show();
- $div.width( val(-1) ); // handle negative numbers by ignoring #1599
- equal($div.width(), 30, "Test negative width ignored");
+ $div.width( val(-1) ); // handle negative numbers by setting to 0 #11604
+ equal($div.width(), 0, "Test negative width normalized to 0");
$div.css("padding", "20px");
- equal($div.width(), 30, "Test padding specified with pixels");
+ equal($div.width(), 0, "Test padding specified with pixels");
$div.css("border", "2px solid #fff");
- equal($div.width(), 30, "Test border specified with pixels");
+ equal($div.width(), 0, "Test border specified with pixels");
$div.css({ display: "", border: "", padding: "" });
@@ -71,12 +71,12 @@ function testHeight( val ) {
$div.hide();
equal($div.height(), 30, "Test hidden div");
$div.show();
- $div.height( val(-1) ); // handle negative numbers by ignoring #1599
- equal($div.height(), 30, "Test negative height ignored");
+ $div.height( val(-1) ); // handle negative numbers by setting to 0 #11604
+ equal($div.height(), 0, "Test negative height normalized to 0");
$div.css("padding", "20px");
- equal($div.height(), 30, "Test padding specified with pixels");
+ equal($div.height(), 0, "Test padding specified with pixels");
$div.css("border", "2px solid #fff");
- equal($div.height(), 30, "Test border specified with pixels");
+ equal($div.height(), 0, "Test border specified with pixels");
$div.css({ display: "", border: "", padding: "", height: "1px" });