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

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

Powered by Google App Engine
This is Rietveld 408576698