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

Unified Diff: third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration.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.js
diff --git a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration.js b/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration.js
deleted file mode 100644
index f45156a282be3b33891f1edd7352b7970d6f85ee..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/svg/dom/script-tests/SVGAnimatedEnumeration.js
+++ /dev/null
@@ -1,37 +0,0 @@
-description("This test checks the SVGAnimatedEnumeration API - utilizing the clipPathUnits property of SVGClipPathElement");
-
-var clipPathElement = document.createElementNS("http://www.w3.org/2000/svg", "clipPath");
-
-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("Check that enumerations are static, caching value in a local variable and modifying it, should have no effect");
-var enumRef = clipPathElement.clipPathUnits.baseVal;
-enumRef = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX;
-shouldBe("enumRef", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-debug("");
-debug("Check assigning various valid and invalid values");
-shouldThrow("clipPathElement.clipPathUnits.baseVal = 3");
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-shouldThrow("clipPathElement.clipPathUnits.baseVal = -1");
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-// ECMA-262, 9.7, "ToUint16"
-shouldBeEqualToString("clipPathElement.clipPathUnits.baseVal = '1'", SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE.toString());
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-// ECMA-262, 9.7, "ToUint16"
-shouldThrow("clipPathElement.clipPathUnits.baseVal = 'aString'");
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE");
-
-shouldBe("clipPathElement.clipPathUnits.baseVal = 2", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-shouldThrow("clipPathElement.clipPathUnits.baseVal = clipPathElement");
-shouldBe("clipPathElement.clipPathUnits.baseVal", "SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX");
-
-successfullyParsed = true;

Powered by Google App Engine
This is Rietveld 408576698