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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLength.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/SVGAnimatedLength.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLength.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLength.js
deleted file mode 100644
index 7f499a20f7d76ab6228c2b83c6aa048c865a2844..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedLength.js
+++ /dev/null
@@ -1,29 +0,0 @@
-description("This test checks the SVGAnimatedLength API - utilizing the width property of SVGRectElement");
-
-var rectElement = document.createElementNS("http://www.w3.org/2000/svg", "rect");
-
-debug("");
-debug("Check initial width value");
-shouldBeEqualToString("rectElement.width.toString()", "[object SVGAnimatedLength]");
-shouldBeEqualToString("rectElement.width.baseVal.toString()", "[object SVGLength]");
-shouldBe("rectElement.width.baseVal.value", "0");
-
-debug("");
-debug("Check that lengths are dynamic, caching value in a local variable and modifying it, should take effect");
-var numRef = rectElement.width.baseVal;
-numRef.value = 100;
-shouldBe("numRef.value", "100");
-shouldBe("rectElement.width.baseVal.value", "100");
-
-debug("");
-debug("Check that assigning to baseVal has no effect, as no setter is defined");
-shouldBe("rectElement.width.baseVal = -1", "-1");
-shouldBeEqualToString("rectElement.width.baseVal = 'aString'", "aString");
-shouldBe("rectElement.width.baseVal = rectElement", "rectElement");
-
-debug("");
-debug("Check that the width value remained 100, and the baseVal type has not been changed");
-shouldBeEqualToString("rectElement.width.baseVal.toString()", "[object SVGLength]");
-shouldBe("rectElement.width.baseVal.value", "100");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698