From bf802496c6b1055222814e8cd5185c023eadf202 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Tue, 13 May 2008 18:56:56 +0000 Subject: [PATCH] Updating outerWidth unit test to use absolute position --- test/unit/dimensions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index af35850..aac1655 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() { -- 1.7.10.4