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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGGradientElement.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
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGGradientElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGGradientElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGGradientElement.js
deleted file mode 100644
index b55e915057c33d9dca2e7bffbbff1fdb18d13bd3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGGradientElement.js
+++ /dev/null
@@ -1,79 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGGradientElement");
-
-var gradientElement = document.createElementNS("http://www.w3.org/2000/svg", "linearGradient");
-gradientElement.setAttribute("gradientUnits", "userSpaceOnUse");
-gradientElement.setAttribute("spreadMethod", "pad");
-
-// gradientUnits
-debug("");
-debug("Check initial 'gradientUnits' value");
-shouldBeEqualToString("gradientElement.gradientUnits.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(gradientElement.gradientUnits.baseVal)", "number");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-debug("");
-debug("Switch to 'objectBoundingBox'");
-shouldBe("gradientElement.gradientUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("gradientElement.getAttribute('gradientUnits')", "objectBoundingBox");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("gradientElement.gradientUnits.baseVal = 3");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("gradientElement.getAttribute('gradientUnits')", "objectBoundingBox");
-
-shouldThrow("gradientElement.gradientUnits.baseVal = -1");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("gradientElement.getAttribute('gradientUnits')", "objectBoundingBox");
-
-shouldThrow("gradientElement.gradientUnits.baseVal = 0");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("gradientElement.getAttribute('gradientUnits')", "objectBoundingBox");
-
-debug("");
-debug("Switch to 'userSpaceOnUse'");
-shouldBe("gradientElement.gradientUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBe("gradientElement.gradientUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBeEqualToString("gradientElement.getAttribute('gradientUnits')", "userSpaceOnUse");
-
-// spreadMethod
-debug("");
-debug("Check initial 'spreadMethod' value");
-shouldBeEqualToString("gradientElement.spreadMethod.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(gradientElement.spreadMethod.baseVal)", "number");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_PAD");
-
-debug("");
-debug("Switch to 'reflect' value");
-shouldBe("gradientElement.spreadMethod.baseVal = SVGGradientElement.SVG_SPREADMETHOD_REFLECT", "SVGGradientElement.SVG_SPREADMETHOD_REFLECT");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_REFLECT");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "reflect");
-
-debug("");
-debug("Switch to 'repeat' value");
-shouldBe("gradientElement.spreadMethod.baseVal = SVGGradientElement.SVG_SPREADMETHOD_REPEAT", "SVGGradientElement.SVG_SPREADMETHOD_REPEAT");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_REPEAT");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "repeat");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("gradientElement.spreadMethod.baseVal = 4");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_REPEAT");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "repeat");
-
-shouldThrow("gradientElement.spreadMethod.baseVal = -1");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_REPEAT");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "repeat");
-
-shouldThrow("gradientElement.spreadMethod.baseVal = 0");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_REPEAT");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "repeat");
-
-debug("");
-debug("Switch to 'pad'");
-shouldBe("gradientElement.spreadMethod.baseVal = SVGGradientElement.SVG_SPREADMETHOD_PAD", "SVGGradientElement.SVG_SPREADMETHOD_PAD");
-shouldBe("gradientElement.spreadMethod.baseVal", "SVGGradientElement.SVG_SPREADMETHOD_PAD");
-shouldBeEqualToString("gradientElement.getAttribute('spreadMethod')", "pad");
-
-successfullyParsed = true;
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698