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

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

Powered by Google App Engine
This is Rietveld 408576698