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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.xhtml

Issue 2344403002: Convert LayoutTests/svg/dom/SVGLengthList*.html js-tests.js to testharness.js based tests (Closed)
Patch Set: Align with review comments Created 4 years, 3 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/SVGLengthList-removeItem.xhtml
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.xhtml
deleted file mode 100644
index 8aba02f492457b7e3b44083da01c75e771263c07..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-removeItem.xhtml
+++ /dev/null
@@ -1,46 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<script>window.enablePixelTesting = true;</script>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<svg id="svg" xmlns="http://www.w3.org/2000/svg" width="200" height="200">
- <text id="text" x="500 50 100 900 150" y="50">ABC</text>
- <text id="reference" x="50 100 150" y="100">ABC</text>
-</svg>
-
-<p id="description"></p>
-<div id="console"></div>
-<script type="text/javascript">
-<![CDATA[
- description("This is a test of the SVGLengthList::removeItem() API.");
-
- var svg = document.getElementById("svg");
- var text = document.getElementById("text");
-
- debug("");
- debug("Check initial list state of text1");
- shouldBe("text.x.baseVal.numberOfItems", "5");
- shouldBe("text.x.baseVal.getItem(0).value", "500");
- shouldBe("text.x.baseVal.getItem(1).value", "50");
- shouldBe("text.x.baseVal.getItem(2).value", "100");
- shouldBe("text.x.baseVal.getItem(3).value", "900");
- shouldBe("text.x.baseVal.getItem(4).value", "150");
- shouldThrow("text.x.baseVal.getItem(5)");
-
- debug("");
- debug("Remove fourth item of text1");
- shouldBe("text.x.baseVal.removeItem(0).value", "500");
-
- debug("");
- debug("Remove third item of text1");
- shouldBe("text.x.baseVal.removeItem(2).value", "900");
-
- debug("");
- debug("The test passes if you only see 'PASS' messages, and both text elements on top look the same");
- debug("");
-
-]]>
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698