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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/path-pointAtLength.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-pointAtLength.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-pointAtLength.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-pointAtLength.js
deleted file mode 100644
index cc6c8fbf977e5a748661dec3c6fa9b6352491f55..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/path-pointAtLength.js
+++ /dev/null
@@ -1,17 +0,0 @@
-description("This tests getPointAtLength of SVG path.");
-
-var pathElement = document.createElementNS("http://www.w3.org/2000/svg", "path");
-
-function pointAtLengthOfPath(string) {
- pathElement.setAttributeNS(null, "d", string);
-
- var point = pathElement.getPointAtLength(700);
- return "(" + Math.round(point.x) + ", " + Math.round(point.y) + ")";
-}
-
-shouldBe("pointAtLengthOfPath('M0,20 L400,20 L640,20')", "'(640, 20)'");
-shouldBe("pointAtLengthOfPath('M0,20 L400,20 L640,20 z')", "'(580, 20)'");
-shouldBe("pointAtLengthOfPath('M0,20 L400,20 z M 320,20 L640,20')", "'(100, 20)'");
-shouldBe("pointAtLengthOfPath('M0,20 L20,40')", "'(20, 40)'");
-
-var successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698