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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 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/SVGPathSegList-xml-dom-synchronization.xhtml
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml
deleted file mode 100644
index 44564cf956b47e9c4f7f7a24b7557d890aa2f5df..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGPathSegList-xml-dom-synchronization.xhtml
+++ /dev/null
@@ -1,56 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<script>window.enablePixelTesting = true;</script>
-<script src="../../resources/js-test.js"></script>
-<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
-<script type="text/javascript">
- window.outputRepaintRects = false;
- function repaintTest() {
- window.jsTestIsAsync = true;
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- path = document.getElementById("path");
- shouldBe("path.pathSegList.numberOfItems", "3");
-
- // Check initial 'd' attribute value.
- shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 200 0 L 100 0 L 100 100");
-
- // Append one item, check 'd' attribute changed.
- path.pathSegList.appendItem(path.createSVGPathSegLinetoAbs(0, 100));
- shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 200 0 L 100 0 L 100 100 L 0 100");
-
- // Modify first item, check 'd' attribute changed.
- path.pathSegList.getItem(0).x -= 100;
- shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 100 0 L 100 0 L 100 100 L 0 100");
-
- // Modify first item, check 'd' attribute changed, now a green rectangle should be visible.
- path.pathSegList.getItem(0).x -= 100;
- shouldBeEqualToString("path.getAttribute('d').formatDAttribute()", "M 0 0 L 100 0 L 100 100 L 0 100");
-
- finishJSTest();
- }
-</script>
-</head>
-<body onload="runRepaintAndPixelTest()">
-<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
- <path id="path" fill="green" transform="translate(10 10)" d="M 200 0 L 100 0 L 100 100"/>
-</svg>
-
-<p id="description"></p>
-<div id="console"></div>
-<script type="text/javascript">
-<![CDATA[
- description("This is a test how SVGLengthList reacts to XML DOM modifications.");
-
- // Extend String prototype, to offer a function, that formats the d attribute in the same way across browsers
- String.prototype.formatDAttribute = function() {
- return this.replace(/,/g, " ") // Remove Firefox commas
- .replace(/([A-Z])/g, " $1 ") // "M 100 0L 50 0" -> " M 100 0 L 50 0"
- .replace(/^\s/, "") // " M 100 0" -> "M 100 0"
- .replace(/\s\s/g, " "); // If there was already whitespace between coordinates & commands, fix it up again.
- }
-]]>
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698