Index: LayoutTests/svg/dynamic-updates/script-tests/SVGEllipseElement-svgdom-requiredFeatures.js |
diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGEllipseElement-svgdom-requiredFeatures.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGEllipseElement-svgdom-requiredFeatures.js |
index cd635c435f0a349d48f656bdab96e5f813821ebb..e143fd2495da8388f8285710fbcf8efbc727f1e4 100644 |
--- a/LayoutTests/svg/dynamic-updates/script-tests/SVGEllipseElement-svgdom-requiredFeatures.js |
+++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGEllipseElement-svgdom-requiredFeatures.js |
@@ -11,19 +11,19 @@ rootSVGElement.appendChild(ellipseElement); |
function repaintTest() { |
debug("Check that SVGEllipseElement is initially displayed"); |
- shouldBeEqualToString("document.defaultView.getComputedStyle(ellipseElement, null).display", "inline"); |
+ shouldHaveBBox("ellipseElement", "400", "400"); |
debug("Check that setting requiredFeatures to something invalid makes it not render"); |
ellipseElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#BogusFeature"); |
- shouldBeEqualToString("document.defaultView.getComputedStyle(ellipseElement, null).display", ""); |
+ shouldHaveBBox("ellipseElement", "0", "0"); |
debug("Check that setting requiredFeatures to something valid makes it render again"); |
ellipseElement.requiredFeatures.replaceItem("http://www.w3.org/TR/SVG11/feature#Shape", 0); |
- shouldBeEqualToString("document.defaultView.getComputedStyle(ellipseElement, null).display", "inline"); |
+ shouldHaveBBox("ellipseElement", "400", "400"); |
debug("Check that adding something valid to requiredFeatures keeps rendering the element"); |
ellipseElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#Gradient"); |
- shouldBeEqualToString("document.defaultView.getComputedStyle(ellipseElement, null).display", "inline"); |
+ shouldHaveBBox("ellipseElement", "400", "400"); |
debug("Check that adding something invalid to requiredFeatures makes it not render"); |
ellipseElement.requiredFeatures.appendItem("http://www.w3.org/TR/SVG11/feature#BogusFeature"); |
- shouldBeEqualToString("document.defaultView.getComputedStyle(ellipseElement, null).display", ""); |
+ shouldHaveBBox("ellipseElement", "0", "0"); |
completeTest(); |
} |