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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEBlendElement.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-SVGFEBlendElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEBlendElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEBlendElement.js
deleted file mode 100644
index abd171d1a256c2892b0217976a1f9762c545f141..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEBlendElement.js
+++ /dev/null
@@ -1,63 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGFEBlendElement");
-
-var feBlendElement = document.createElementNS("http://www.w3.org/2000/svg", "feBlend");
-feBlendElement.setAttribute("mode", "normal");
-
-debug("");
-debug("Check initial 'mode' value");
-shouldBeEqualToString("feBlendElement.mode.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feBlendElement.mode.baseVal)", "number");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL");
-
-debug("");
-debug("Switch to 'multiply'");
-shouldBe("feBlendElement.mode.baseVal = SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY", "SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "multiply");
-
-debug("");
-debug("Switch to 'screen'");
-shouldBe("feBlendElement.mode.baseVal = SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN", "SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "screen");
-
-debug("");
-debug("Switch to 'darken'");
-shouldBe("feBlendElement.mode.baseVal = SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN", "SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "darken");
-
-debug("");
-debug("Switch to 'lighten'");
-shouldBe("feBlendElement.mode.baseVal = SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN", "SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "lighten");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feBlendElement.mode.baseVal = 6");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "lighten");
-
-shouldThrow("feBlendElement.mode.baseVal = -1");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "lighten");
-
-shouldThrow("feBlendElement.mode.baseVal = 0");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "lighten");
-
-debug("");
-debug("Switch to 'normal'");
-shouldBe("feBlendElement.mode.baseVal = SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL", "SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "normal");
-
-debug("");
-debug("baseVal access when mode is set to a value not in SVGFEBlendElement.SVG_FEBLEND_MODE_*.");
-feBlendElement.setAttribute("mode", "color-dodge");
-shouldBe("feBlendElement.mode.baseVal", "SVGFEBlendElement.SVG_FEBLEND_MODE_UNKNOWN");
-shouldThrow("feBlendElement.mode.baseVal = 13");
-shouldBeEqualToString("feBlendElement.getAttribute('mode')", "color-dodge");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698