Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: LayoutTests/svg/dynamic-updates/resources/SVGTestCase.js

Issue 43223002: SVGTests should not leave detached elements in the tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always reattach Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/svg/dynamic-updates/script-tests/SVGCircleElement-dom-requiredFeatures.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698