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

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

Issue 2340733002: 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-getItem.xhtml
diff --git a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-getItem.xhtml b/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-getItem.xhtml
deleted file mode 100644
index ba9a8a1cce0257ac75d32566d7b2eab299ab7433..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/SVGLengthList-getItem.xhtml
+++ /dev/null
@@ -1,36 +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="text1" x="50 100 150" y="50">ABC</text>
-</svg>
-
-<p id="description"></p>
-<div id="console"></div>
-<script type="text/javascript">
-<![CDATA[
- description("This is a test of the SVGLengthList::getItem() API.");
-
- var svg = document.getElementById("svg");
- var text1 = document.getElementById("text1");
-
- debug("Check lengths of text x item lists");
- shouldBe("text1.x.baseVal.numberOfItems", "3");
-
- debug("");
- debug("Test with various index parameters");
- shouldThrow("text1.x.baseVal.getItem(-100)");
- shouldThrow("text1.x.baseVal.getItem(-1)");
- shouldBe("text1.x.baseVal.getItem(0).value", "50");
- shouldBe("text1.x.baseVal.getItem(1).value", "100");
- shouldBe("text1.x.baseVal.getItem(2).value", "150");
- shouldThrow("text1.x.baseVal.getItem(3)");
- shouldThrow("text1.x.baseVal.getItem(100)");
-
-]]>
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698