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

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

Issue 2713833002: Convert LayoutTests/svg/dom/SVGAnimated*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Created 3 years, 10 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/SVGAnimatedLengthList.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLengthList.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLengthList.js
deleted file mode 100644
index 1cc76685ba0df2fe7c5babd79f4376c4e22fd210..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLengthList.js
+++ /dev/null
@@ -1,30 +0,0 @@
-description("This test checks the SVGAnimatedLengthList API - utilizing the dx property of SVGTextElement");
-
-var textElement = document.createElementNS("http://www.w3.org/2000/svg", "text");
-textElement.setAttribute("dx", "50");
-
-debug("");
-debug("Check initial dx value");
-shouldBeEqualToString("textElement.dx.toString()", "[object SVGAnimatedLengthList]");
-shouldBeEqualToString("textElement.dx.baseVal.toString()", "[object SVGLengthList]");
-shouldBe("textElement.dx.baseVal.getItem(0).value", "50");
-
-debug("");
-debug("Check that length lists are dynamic, caching value in a local variable and modifying it, should take effect");
-var numRef = textElement.dx.baseVal;
-numRef.getItem(0).value = 100;
-shouldBe("numRef.getItem(0).value", "100");
-shouldBe("textElement.dx.baseVal.getItem(0).value", "100");
-
-debug("");
-debug("Check that assigning to baseVal has no effect, as no setter is defined");
-shouldBe("textElement.dx.baseVal = -1", "-1");
-shouldBeEqualToString("textElement.dx.baseVal = 'aString'", "aString");
-shouldBe("textElement.dx.baseVal = textElement", "textElement");
-
-debug("");
-debug("Check that the dx value remained 100, and the baseVal type has not been changed");
-shouldBeEqualToString("textElement.dx.baseVal.toString()", "[object SVGLengthList]");
-shouldBe("textElement.dx.baseVal.getItem(0).value", "100");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698