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

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

Issue 2705293005: Convert LayoutTests/svg/dom/SVGAnimated*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments 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/SVGAnimatedInteger.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedInteger.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedInteger.js
deleted file mode 100644
index 9c63af05d24ed99cf685c9ebdc5a7ecf325166f4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedInteger.js
+++ /dev/null
@@ -1,33 +0,0 @@
-description("This test checks the SVGAnimatedInteger API - utilizing the targetX property of SVGFEConvolveMatrix");
-
-var feConvolveMatrix = document.createElementNS("http://www.w3.org/2000/svg", "feConvolveMatrix");
-
-debug("");
-debug("Check initial targetX value");
-shouldBeEqualToString("feConvolveMatrix.targetX.toString()", "[object SVGAnimatedInteger]");
-shouldBeEqualToString("typeof(feConvolveMatrix.targetX.baseVal)", "number");
-shouldBe("feConvolveMatrix.targetX.baseVal", "0");
-
-debug("");
-debug("Check that integers are static, caching value in a local variable and modifying it, should have no effect");
-var numRef = feConvolveMatrix.targetX.baseVal;
-numRef = 100;
-shouldBe("numRef", "100");
-shouldBe("feConvolveMatrix.targetX.baseVal", "0");
-
-debug("");
-debug("Check assigning various valid and invalid values");
-shouldBe("feConvolveMatrix.targetX.baseVal = -1", "-1"); // Negative values are allowed from SVG DOM, but should lead to an error when rendering (disable the filter)
-shouldBe("feConvolveMatrix.targetX.baseVal = 300", "300");
-// ECMA-262, 9.5, "ToInt32"
-shouldBe("feConvolveMatrix.targetX.baseVal = 'aString'", "'aString'");
-shouldBe("feConvolveMatrix.targetX.baseVal", "0");
-shouldBe("feConvolveMatrix.targetX.baseVal = feConvolveMatrix", "feConvolveMatrix");
-shouldBe("feConvolveMatrix.targetX.baseVal", "0");
-shouldBe("feConvolveMatrix.targetX.baseVal = 300", "300");
-
-debug("");
-debug("Check that the targetX value remained 300");
-shouldBe("feConvolveMatrix.targetX.baseVal", "300");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698