Index: LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js |
diff --git a/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js b/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js |
index 13dcdeea3971f917315657325f760db8854cf1c0..b7f6d723fa6fd9304ce85b9c5e06cd56163f2cb8 100644 |
--- a/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js |
+++ b/LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js |
@@ -12,6 +12,12 @@ function createSVGElement(name) { |
return document.createElementNS(svgNS, "svg:" + name); |
} |
+function shouldHaveBBox(element, width, height) |
+{ |
+ shouldBe(element + ".getBBox().width", width); |
+ shouldBe(element + ".getBBox().height", height); |
+} |
+ |
function createSVGTestCase() { |
if (window.testRunner) |
testRunner.waitUntilDone(); |