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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/path-totalLength.js

Issue 2413753004: Move getTotalLength and getPointAtLength methods from SVGPathElement to SVGGeometryElement. (Closed)
Patch Set: Align with review comments Created 4 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: third_party/WebKit/LayoutTests/svg/dom/script-tests/path-totalLength.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-totalLength.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-totalLength.js
deleted file mode 100644
index ad4623983312982b6921845fffc0b45125b84e96..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-totalLength.js
+++ /dev/null
@@ -1,16 +0,0 @@
-description("This tests getTotalLength of SVG path.");
-
-var pathElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
-
-function getTotalLength(string) {
- pathElement.setAttributeNS(null, "d", string);
-
- var point = pathElement.getTotalLength();
- return point;
-}
-
-shouldBe("getTotalLength('M0,20 L400,20 L640,20')", "640");
-shouldBe("getTotalLength('M0,20 L400,20 L640,20 z')", "1280");
-shouldBe("getTotalLength('M0,20 L400,20 z M 320,20 L640,20')", "1120");
-
-var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698