Commit bf802496 authored by Brandon Aaron's avatar Brandon Aaron

Updating outerWidth unit test to use absolute position

parent 28182b43
...@@ -55,12 +55,13 @@ test("outerWidth()", function() { ...@@ -55,12 +55,13 @@ test("outerWidth()", function() {
equals($div.outerWidth(), 74, "Test with padding and border"); equals($div.outerWidth(), 74, "Test with padding and border");
$div.css("margin", "10px"); $div.css("margin", "10px");
equals($div.outerWidth(), 74, "Test with padding, border and margin without margin option"); 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"); equals($div.outerWidth(true), 94, "Test with padding, border and margin with margin option");
$div.hide(); $div.hide();
equals($div.outerWidth(true), 94, "Test hidden div with padding, border and margin with margin option"); equals($div.outerWidth(true), 94, "Test hidden div with padding, border and margin with margin option");
// reset styles // reset styles
$div.css({ display: "", border: "", padding: "", width: "", height: "" }); $div.css({ position: "", display: "", border: "", padding: "", width: "", height: "" });
}); });
test("outerHeight()", function() { test("outerHeight()", function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment