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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt

Issue 2447633002: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
1 This test checks the use of SVGAnimatedEnumeration within SVGTextPathElement
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial 'method' value
8 PASS textPathElement.method.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(textPathElement.method.baseVal) is "number"
10 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_AL IGN
11
12 Switch to 'stretch'
13 PASS textPathElement.method.baseVal = SVGTextPathElement.TEXTPATH_METHODTYPE_STR ETCH is SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH
14 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
15 PASS textPathElement.getAttribute('method') is "stretch"
16
17 Try setting invalid values
18 PASS textPathElement.method.baseVal = 3 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provi ded (3) is larger than the largest allowed value (2)..
19 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
20 PASS textPathElement.getAttribute('method') is "stretch"
21 PASS textPathElement.method.baseVal = -1 threw exception TypeError: Failed to se t the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value prov ided (65535) is larger than the largest allowed value (2)..
22 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
23 PASS textPathElement.getAttribute('method') is "stretch"
24 PASS textPathElement.method.baseVal = 0 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provi ded is 0, which is not settable..
25 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
26 PASS textPathElement.getAttribute('method') is "stretch"
27
28 Switch to 'align'
29 PASS textPathElement.method.baseVal = SVGTextPathElement.TEXTPATH_METHODTYPE_ALI GN is SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN
30 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_AL IGN
31 PASS textPathElement.getAttribute('method') is "align"
32
33 Check initial 'spacing' value
34 PASS textPathElement.spacing.toString() is "[object SVGAnimatedEnumeration]"
35 PASS typeof(textPathElement.spacing.baseVal) is "number"
36 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ AUTO
37
38 Switch to 'exact'
39 PASS textPathElement.spacing.baseVal = SVGTextPathElement.TEXTPATH_SPACINGTYPE_E XACT is SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT
40 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
41 PASS textPathElement.getAttribute('spacing') is "exact"
42
43 Try setting invalid values
44 PASS textPathElement.spacing.baseVal = 3 threw exception TypeError: Failed to se t the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value prov ided (3) is larger than the largest allowed value (2)..
45 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
46 PASS textPathElement.getAttribute('spacing') is "exact"
47 PASS textPathElement.spacing.baseVal = -1 threw exception TypeError: Failed to s et the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pro vided (65535) is larger than the largest allowed value (2)..
48 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
49 PASS textPathElement.getAttribute('spacing') is "exact"
50 PASS textPathElement.spacing.baseVal = 0 threw exception TypeError: Failed to se t the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value prov ided is 0, which is not settable..
51 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
52 PASS textPathElement.getAttribute('spacing') is "exact"
53
54 Switch to 'auto'
55 PASS textPathElement.spacing.baseVal = SVGTextPathElement.TEXTPATH_SPACINGTYPE_A UTO is SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO
56 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ AUTO
57 PASS textPathElement.getAttribute('spacing') is "auto"
58 PASS successfullyParsed is true
59
60 TEST COMPLETE
61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698