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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.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/SVGAnimatedNumber.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js
deleted file mode 100644
index df19566c44f8ff1bde66a608b750114655554703..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedNumber.js
+++ /dev/null
@@ -1,38 +0,0 @@
-description("This test checks the SVGAnimatedNumber API - utilizing the surfaceScale property of SVGFESpecularLightingElement");
-
-var feSpecularLightingElement = document.createElementNS("http://www.w3.org/2000/svg", "feSpecularLighting");
-
-debug("");
-debug("Check initial surfaceScale value");
-shouldBeEqualToString("feSpecularLightingElement.surfaceScale.toString()", "[object SVGAnimatedNumber]");
-shouldBeEqualToString("typeof(feSpecularLightingElement.surfaceScale.baseVal)", "number");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "1");
-
-debug("");
-debug("Check that integers are static, caching value in a local variable and modifying it, should have no effect");
-var numRef = feSpecularLightingElement.surfaceScale.baseVal;
-numRef = 100;
-shouldBe("numRef", "100");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "1");
-
-debug("");
-debug("Check assigning various valid and invalid values");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal = -1", "-1"); // Negative values are allowed from SVG DOM, but should lead to an error when rendering (disable the filter)
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal = 300", "300");
-// ECMA-262, 9.3, "ToNumber"
-shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = 'aString'");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "300");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal = 0", "0");
-shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = NaN");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "0");
-shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = Infinity");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "0");
-shouldThrow("feSpecularLightingElement.surfaceScale.baseVal = feSpecularLightingElement");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "0");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal = 300", "300");
-
-debug("");
-debug("Check that the surfaceScale value remained 300");
-shouldBe("feSpecularLightingElement.surfaceScale.baseVal", "300");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698