Index: LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js |
diff --git a/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js b/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js |
index 1a83b91d4b4a36be56aac3b84a027d0cb8776ca5..32c00380057dfef5ce2284a3b12bbc89e0740beb 100644 |
--- a/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js |
+++ b/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js |
@@ -21,25 +21,25 @@ shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", |
// Set following colors should be invalid. |
rect.setAttribute("fill", "f00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).fill"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 0, 0)"); |
// Reset to green. |
rect.setAttribute("fill", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 128, 0)"); |
rect.setAttribute("fill", "ff00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).fill"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 0, 0)"); |
// Reset to green. |
rect.setAttribute("fill", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 128, 0)"); |
rect.setAttribute("fill", "ff0000"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).fill"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 0, 0)"); |
// Reset to green. |
rect.setAttribute("fill", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 128, 0)"); |
rect.setAttribute("fill", "ff00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).fill"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 0, 0)"); |
// Reset to green. |
rect.setAttribute("fill", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).fill", "rgb(0, 128, 0)"); |
@@ -73,25 +73,25 @@ shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke" |
// Set following colors should be invalid. |
rect.setAttribute("stroke", "f00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).stroke"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "none"); |
// Reset to green. |
rect.setAttribute("stroke", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "rgb(0, 128, 0)"); |
rect.setAttribute("stroke", "ff00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).stroke"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "none"); |
// Reset to green. |
rect.setAttribute("stroke", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "rgb(0, 128, 0)"); |
rect.setAttribute("stroke", "ff0000"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).stroke"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "none"); |
// Reset to green. |
rect.setAttribute("stroke", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "rgb(0, 128, 0)"); |
rect.setAttribute("stroke", "ff00"); |
-shouldBeNull("document.defaultView.getComputedStyle(rect, null).stroke"); |
+shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "none"); |
// Reset to green. |
rect.setAttribute("stroke", "green"); |
shouldBeEqualToString("document.defaultView.getComputedStyle(rect, null).stroke", "rgb(0, 128, 0)"); |