test runner: the changes are:
[jquery.git] / test / unit / dimensions.js
index af35850..2e2bb42 100644 (file)
@@ -3,7 +3,7 @@ module("dimensions");
 test("innerWidth()", function() {
        expect(3);
 
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        // set styles
        $div.css({
                margin: 10,
@@ -24,7 +24,7 @@ test("innerWidth()", function() {
 test("innerHeight()", function() {
        expect(3);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        // set styles
        $div.css({
                margin: 10,
@@ -45,7 +45,7 @@ test("innerHeight()", function() {
 test("outerWidth()", function() {
        expect(6);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        $div.css("width", 30);
        
        equals($div.outerWidth(), 30, "Test with only width set");
@@ -55,18 +55,19 @@ 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() {
        expect(6);
        
-       var $div = $("#nothiddendiv");
+       var $div = jQuery("#nothiddendiv");
        $div.css("height", 30);
        
        equals($div.outerHeight(), 30, "Test with only width set");