| Index: LayoutTests/svg/dynamic-updates/script-tests/SVGSVGElement-dom-requiredFeatures.js
|
| diff --git a/LayoutTests/svg/dynamic-updates/script-tests/SVGSVGElement-dom-requiredFeatures.js b/LayoutTests/svg/dynamic-updates/script-tests/SVGSVGElement-dom-requiredFeatures.js
|
| index 8f025895021a29c22cfc9caa8ce5c472c08f8520..fccf3500510c4016ed1dd571185bea0c14501c8c 100644
|
| --- a/LayoutTests/svg/dynamic-updates/script-tests/SVGSVGElement-dom-requiredFeatures.js
|
| +++ b/LayoutTests/svg/dynamic-updates/script-tests/SVGSVGElement-dom-requiredFeatures.js
|
| @@ -7,19 +7,19 @@ var svgElement = rootSVGElement;
|
|
|
| function repaintTest() {
|
| debug("Check that SVGSVGElement is initially displayed");
|
| - shouldBeEqualToString("document.defaultView.getComputedStyle(svgElement, null).display", "inline");
|
| + shouldBe("svgElement.getBoundingClientRect().width", "300");
|
| debug("Check that setting requiredFeatures to something invalid makes it not render");
|
| svgElement.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#BogusFeature");
|
| - shouldBeEqualToString("document.defaultView.getComputedStyle(svgElement, null).display", "");
|
| + shouldBe("svgElement.getBoundingClientRect().width", "0");
|
| debug("Check that setting requiredFeatures to something valid makes it render again");
|
| svgElement.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Shape");
|
| - shouldBeEqualToString("document.defaultView.getComputedStyle(svgElement, null).display", "inline");
|
| + shouldBe("svgElement.getBoundingClientRect().width", "300");
|
| debug("Check that adding something valid to requiredFeatures keeps rendering the element");
|
| svgElement.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#Gradient");
|
| - shouldBeEqualToString("document.defaultView.getComputedStyle(svgElement, null).display", "inline");
|
| + shouldBe("svgElement.getBoundingClientRect().width", "300");
|
| debug("Check that adding something invalid to requiredFeatures makes it not render");
|
| svgElement.setAttribute("requiredFeatures", "http://www.w3.org/TR/SVG11/feature#BogusFeature");
|
| - shouldBeEqualToString("document.defaultView.getComputedStyle(svgElement, null).display", "");
|
| + shouldBe("svgElement.getBoundingClientRect().width", "0");
|
|
|
| completeTest();
|
| }
|
|
|