| 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;
|
|
|