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

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

Issue 2416163002: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: 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-SVGFEMorphologyElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEMorphologyElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEMorphologyElement.js
deleted file mode 100644
index 90ddf7393ff8d3c51cba903e66c60d2fa78b2d2c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEMorphologyElement.js
+++ /dev/null
@@ -1,38 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGFEMorphologyElement");
-
-var feMorphologyElement = document.createElementNS("http://www.w3.org/2000/svg", "feMorphology");
-feMorphologyElement.setAttribute("operator", "erode");
-
-debug("");
-debug("Check initial 'operator' value");
-shouldBeEqualToString("feMorphologyElement.operator.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feMorphologyElement.operator.baseVal)", "number");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE");
-
-debug("");
-debug("Switch to 'dilate'");
-shouldBe("feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE");
-shouldBeEqualToString("feMorphologyElement.getAttribute('operator')", "dilate");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feMorphologyElement.operator.baseVal = 4");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE");
-shouldBeEqualToString("feMorphologyElement.getAttribute('operator')", "dilate");
-
-shouldThrow("feMorphologyElement.operator.baseVal = -1");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE");
-shouldBeEqualToString("feMorphologyElement.getAttribute('operator')", "dilate");
-
-shouldThrow("feMorphologyElement.operator.baseVal = 0");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE");
-shouldBeEqualToString("feMorphologyElement.getAttribute('operator')", "dilate");
-
-debug("");
-debug("Switch to 'erode'");
-shouldBe("feMorphologyElement.operator.baseVal = SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE");
-shouldBe("feMorphologyElement.operator.baseVal", "SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE");
-shouldBeEqualToString("feMorphologyElement.getAttribute('operator')", "erode");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698