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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFETurbulenceElement.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-SVGFETurbulenceElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFETurbulenceElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFETurbulenceElement.js
deleted file mode 100644
index a8dd050d631316ec16b08f31eef9a59ae1e049f1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFETurbulenceElement.js
+++ /dev/null
@@ -1,73 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGFETurbulenceElement");
-
-var feTurbulenceElement = document.createElementNS("http://www.w3.org/2000/svg", "feTurbulence");
-feTurbulenceElement.setAttribute("type", "fractalNoise");
-feTurbulenceElement.setAttribute("stitchTiles", "stitch");
-
-// type
-debug("");
-debug("Check initial 'type' value");
-shouldBeEqualToString("feTurbulenceElement.type.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feTurbulenceElement.type.baseVal)", "number");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE");
-
-debug("");
-debug("Switch to 'turbulence'");
-shouldBe("feTurbulenceElement.type.baseVal = SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('type')", "turbulence");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feTurbulenceElement.type.baseVal = 3");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('type')", "turbulence");
-
-shouldThrow("feTurbulenceElement.type.baseVal = -1");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('type')", "turbulence");
-
-shouldThrow("feTurbulenceElement.type.baseVal = 0");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('type')", "turbulence");
-
-debug("");
-debug("Switch to 'fractalNoise'");
-shouldBe("feTurbulenceElement.type.baseVal = SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE");
-shouldBe("feTurbulenceElement.type.baseVal", "SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('type')", "fractalNoise");
-
-// stitchTiles
-debug("");
-debug("Check initial 'stitchTiles' value");
-shouldBeEqualToString("feTurbulenceElement.stitchTiles.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(feTurbulenceElement.stitchTiles.baseVal)", "number");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH");
-
-debug("");
-debug("Switch to 'noStitch'");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal = SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH", "SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('stitchTiles')", "noStitch");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("feTurbulenceElement.stitchTiles.baseVal = 3");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('stitchTiles')", "noStitch");
-
-shouldThrow("feTurbulenceElement.stitchTiles.baseVal = -1");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('stitchTiles')", "noStitch");
-
-shouldThrow("feTurbulenceElement.stitchTiles.baseVal = 0");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('stitchTiles')", "noStitch");
-
-debug("");
-debug("Switch to 'stitch'");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal = SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH", "SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH");
-shouldBe("feTurbulenceElement.stitchTiles.baseVal", "SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH");
-shouldBeEqualToString("feTurbulenceElement.getAttribute('stitchTiles')", "stitch");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698