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

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

Issue 2389803004: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments Created 4 years, 2 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/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.js
deleted file mode 100644
index af872af6e3d3eb57df853ad2a9512c03923730ac..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement.js
+++ /dev/null
@@ -1,56 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGComponentTransferFunctionElement");
-
-var feFuncRElement = document.createElementNS("http://www.w3.org/2000/svg", "feFuncR");
-feFuncRElement.setAttribute("type", "identity");
-
-debug("");
-debug("Check initial 'type' value");
-shouldBeEqualToString("feFuncRElement.type.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feFuncRElement.type.baseVal)", "number");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY");
-
-debug("");
-debug("Switch to 'table'");
-shouldBe("feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "table");
-
-debug("");
-debug("Switch to 'discrete'");
-shouldBe("feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "discrete");
-
-debug("");
-debug("Switch to 'linear'");
-shouldBe("feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "linear");
-
-debug("");
-debug("Switch to 'gamma'");
-shouldBe("feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "gamma");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feFuncRElement.type.baseVal = 6");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "gamma");
-
-shouldThrow("feFuncRElement.type.baseVal = -1");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "gamma");
-
-shouldThrow("feFuncRElement.type.baseVal = 0");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "gamma");
-
-debug("");
-debug("Switch to 'identity'");
-shouldBe("feFuncRElement.type.baseVal = SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY");
-shouldBe("feFuncRElement.type.baseVal", "SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY");
-shouldBeEqualToString("feFuncRElement.getAttribute('type')", "identity");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698