aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2008-05-13 18:56:56 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2008-05-13 18:56:56 +0000
commitbf802496c6b1055222814e8cd5185c023eadf202 (patch)
treede6bd1916ab41e4852c4c817493c1c50bedaf339
parent28182b43209b0e62b9ca2192671fc26644953717 (diff)
downloadjquery-bf802496c6b1055222814e8cd5185c023eadf202.tar.gz
jquery-bf802496c6b1055222814e8cd5185c023eadf202.zip
Updating outerWidth unit test to use absolute position
-rw-r--r--test/unit/dimensions.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index af35850f5..aac1655f5 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -55,12 +55,13 @@ test("outerWidth()", function() {
equals($div.outerWidth(), 74, "Test with padding and border");
$div.css("margin", "10px");
equals($div.outerWidth(), 74, "Test with padding, border and margin without margin option");
+ $div.css("position", "absolute");
equals($div.outerWidth(true), 94, "Test with padding, border and margin with margin option");
$div.hide();
equals($div.outerWidth(true), 94, "Test hidden div with padding, border and margin with margin option");
// reset styles
- $div.css({ display: "", border: "", padding: "", width: "", height: "" });
+ $div.css({ position: "", display: "", border: "", padding: "", width: "", height: "" });
});
test("outerHeight()", function() {