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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEColorMatrixElement.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-SVGFEColorMatrixElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEColorMatrixElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEColorMatrixElement.js
deleted file mode 100644
index 265aae393674ffc64922d06046085eee28a122d6..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFEColorMatrixElement.js
+++ /dev/null
@@ -1,50 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGFEColorMatrixElement");
-
-var feColorMatrixElement = document.createElementNS("http://www.w3.org/2000/svg", "feColorMatrix");
-feColorMatrixElement.setAttribute("type", "matrix");
-
-debug("");
-debug("Check initial 'type; value");
-shouldBeEqualToString("feColorMatrixElement.type.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feColorMatrixElement.type.baseVal)", "number");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX");
-
-debug("");
-debug("Switch to 'saturate'");
-shouldBe("feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "saturate");
-
-debug("");
-debug("Switch to 'hueRotate'");
-shouldBe("feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "hueRotate");
-
-debug("");
-debug("Switch to 'luminanceToAlpha'");
-shouldBe("feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "luminanceToAlpha");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feColorMatrixElement.type.baseVal = 5");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "luminanceToAlpha");
-
-shouldThrow("feColorMatrixElement.type.baseVal = -1");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "luminanceToAlpha");
-
-shouldThrow("feColorMatrixElement.type.baseVal = 0");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "luminanceToAlpha");
-
-debug("");
-debug("Switch to 'matrix'");
-shouldBe("feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX");
-shouldBe("feColorMatrixElement.type.baseVal", "SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX");
-shouldBeEqualToString("feColorMatrixElement.getAttribute('type')", "matrix");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698