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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.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-SVGFilterElement.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.js
deleted file mode 100644
index a622e54c57c85e2a7b0e23f0c324769d43706cc0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration-SVGFilterElement.js
+++ /dev/null
@@ -1,74 +0,0 @@
-description("This test checks the use of SVGAnimatedEnumeration within SVGFilterElement");
-
-var filterElement = document.createElementNS("http://www.w3.org/2000/svg", "filter");
-filterElement.setAttribute("filterUnits", "userSpaceOnUse");
-filterElement.setAttribute("primitiveUnits", "userSpaceOnUse");
-
-// filterUnits
-debug("");
-debug("Check initial 'filterUnits' value");
-shouldBeEqualToString("filterElement.filterUnits.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(filterElement.filterUnits.baseVal)", "number");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-debug("");
-debug("Switch to 'objectBoundingBox'");
-shouldBe("filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('filterUnits')", "objectBoundingBox");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("filterElement.filterUnits.baseVal = 3");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('filterUnits')", "objectBoundingBox");
-
-shouldThrow("filterElement.filterUnits.baseVal = -1");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('filterUnits')", "objectBoundingBox");
-
-shouldThrow("filterElement.filterUnits.baseVal = 0");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('filterUnits')", "objectBoundingBox");
-
-debug("");
-debug("Switch to 'userSpaceOnUse'");
-shouldBe("filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBe("filterElement.filterUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBeEqualToString("filterElement.getAttribute('filterUnits')", "userSpaceOnUse");
-
-// primitiveUnits
-debug("");
-debug("Check initial 'primitiveUnits' value");
-shouldBeEqualToString("filterElement.primitiveUnits.toString()", "[object SVGAnimatedEnumeration]");
-shouldBeEqualToString("typeof(filterElement.primitiveUnits.baseVal)", "number");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-debug("");
-debug("Switch to 'objectBoundingBox'");
-shouldBe("filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('primitiveUnits')", "objectBoundingBox");
-
-debug("");
-debug("Try setting invalid values");
-shouldThrow("filterElement.primitiveUnits.baseVal = 3");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('primitiveUnits')", "objectBoundingBox");
-
-shouldThrow("filterElement.primitiveUnits.baseVal = -1");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('primitiveUnits')", "objectBoundingBox");
-
-shouldThrow("filterElement.primitiveUnits.baseVal = 0");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBeEqualToString("filterElement.getAttribute('primitiveUnits')", "objectBoundingBox");
-
-debug("");
-debug("Switch to 'userSpaceOnUse'");
-shouldBe("filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBe("filterElement.primitiveUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldBeEqualToString("filterElement.getAttribute('primitiveUnits')", "userSpaceOnUse");
-
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698