Index: LayoutTests/fast/css/script-tests/image-set-parsing-invalid.js |
diff --git a/LayoutTests/fast/css/script-tests/image-set-parsing-invalid.js b/LayoutTests/fast/css/script-tests/image-set-parsing-invalid.js |
index a84205e9e963d1125791acd141e9aa58af30cd93..8c924049e47138505d444aac7f4fdd9c485cb11a 100644 |
--- a/LayoutTests/fast/css/script-tests/image-set-parsing-invalid.js |
+++ b/LayoutTests/fast/css/script-tests/image-set-parsing-invalid.js |
@@ -3,26 +3,26 @@ description("Test the parsing of the -webkit-image-set function."); |
// These have to be global for the test helpers to see them. |
var cssRule; |
-function testInvalidImageSet(description, property, rule) |
+function testInvalidImageSet(description, rule) |
{ |
debug(""); |
debug(description + " : " + rule); |
var div = document.createElement("div"); |
- div.setAttribute("style", property + ": -webkit-image-set(" + rule + ")"); |
+ div.style.backgroundImage = "-webkit-image-set(" + rule + ")"; |
document.body.appendChild(div); |
- cssRule = div.style.getPropertyCSSValue(property); |
- shouldBe("cssRule", "null"); |
+ cssRule = div.style.backgroundImage; |
+ shouldBeEmptyString("cssRule"); |
document.body.removeChild(div); |
} |
-testInvalidImageSet("Too many url parameters", "background-image", "url(#a #b)"); |
-testInvalidImageSet("No x", "background-image", "url('#a') 1"); |
-testInvalidImageSet("No comma", "background-image", "url('#a') 1x url('#b') 2x"); |
-testInvalidImageSet("Too many scale factor parameters", "background-image", "url('#a') 1x 2x"); |
-testInvalidImageSet("Scale factor is 0", "background-image", "url('#a') 0x"); |
-testInvalidImageSet("No url function", "background-image", "'#a' 1x"); |
+testInvalidImageSet("Too many url parameters", "url(#a #b)"); |
+testInvalidImageSet("No x", "url('#a') 1"); |
+testInvalidImageSet("No comma", "url('#a') 1x url('#b') 2x"); |
+testInvalidImageSet("Too many scale factor parameters", "url('#a') 1x 2x"); |
+testInvalidImageSet("Scale factor is 0", "url('#a') 0x"); |
+testInvalidImageSet("No url function", "'#a' 1x"); |
successfullyParsed = true; |