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

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

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

Powered by Google App Engine
This is Rietveld 408576698