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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 This test checks the use of SVGAnimatedEnumeration within SVGTextPathElement 1 This test checks the use of SVGAnimatedEnumeration within SVGTextPathElement
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 Check initial 'method' value 7 Check initial 'method' value
8 PASS textPathElement.method.toString() is "[object SVGAnimatedEnumeration]" 8 PASS textPathElement.method.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(textPathElement.method.baseVal) is "number" 9 PASS typeof(textPathElement.method.baseVal) is "number"
10 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_AL IGN 10 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_AL IGN
11 11
12 Switch to 'stretch' 12 Switch to 'stretch'
13 PASS textPathElement.method.baseVal = SVGTextPathElement.TEXTPATH_METHODTYPE_STR ETCH is SVGTextPathElement.TEXTPATH_METHODTYPE_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 14 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
15 PASS textPathElement.getAttribute('method') is "stretch" 15 PASS textPathElement.getAttribute('method') is "stretch"
16 16
17 Try setting invalid values 17 Try setting invalid values
18 PASS textPathElement.method.baseVal = 3 threw exception Error: SVG_INVALID_VALUE _ERR: DOM SVG Exception 1. 18 PASS textPathElement.method.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR: A n invalid value was passed to an operation or assigned to an attribute..
19 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH 19 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
20 PASS textPathElement.getAttribute('method') is "stretch" 20 PASS textPathElement.getAttribute('method') is "stretch"
21 PASS textPathElement.method.baseVal = -1 threw exception Error: SVG_INVALID_VALU E_ERR: DOM SVG Exception 1. 21 PASS textPathElement.method.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR: An invalid value was passed to an operation or assigned to an attribute..
22 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH 22 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
23 PASS textPathElement.getAttribute('method') is "stretch" 23 PASS textPathElement.getAttribute('method') is "stretch"
24 PASS textPathElement.method.baseVal = 0 threw exception Error: SVG_INVALID_VALUE _ERR: DOM SVG Exception 1. 24 PASS textPathElement.method.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR: A n invalid value was passed to an operation or assigned to an attribute..
25 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH 25 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_ST RETCH
26 PASS textPathElement.getAttribute('method') is "stretch" 26 PASS textPathElement.getAttribute('method') is "stretch"
27 27
28 Switch to 'align' 28 Switch to 'align'
29 PASS textPathElement.method.baseVal = SVGTextPathElement.TEXTPATH_METHODTYPE_ALI GN is SVGTextPathElement.TEXTPATH_METHODTYPE_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 30 PASS textPathElement.method.baseVal is SVGTextPathElement.TEXTPATH_METHODTYPE_AL IGN
31 PASS textPathElement.getAttribute('method') is "align" 31 PASS textPathElement.getAttribute('method') is "align"
32 32
33 Check initial 'spacing' value 33 Check initial 'spacing' value
34 PASS textPathElement.spacing.toString() is "[object SVGAnimatedEnumeration]" 34 PASS textPathElement.spacing.toString() is "[object SVGAnimatedEnumeration]"
35 PASS typeof(textPathElement.spacing.baseVal) is "number" 35 PASS typeof(textPathElement.spacing.baseVal) is "number"
36 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ AUTO 36 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ AUTO
37 37
38 Switch to 'exact' 38 Switch to 'exact'
39 PASS textPathElement.spacing.baseVal = SVGTextPathElement.TEXTPATH_SPACINGTYPE_E XACT is SVGTextPathElement.TEXTPATH_SPACINGTYPE_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 40 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
41 PASS textPathElement.getAttribute('spacing') is "exact" 41 PASS textPathElement.getAttribute('spacing') is "exact"
42 42
43 Try setting invalid values 43 Try setting invalid values
44 PASS textPathElement.spacing.baseVal = 3 threw exception Error: SVG_INVALID_VALU E_ERR: DOM SVG Exception 1. 44 PASS textPathElement.spacing.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR: An invalid value was passed to an operation or assigned to an attribute..
45 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT 45 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
46 PASS textPathElement.getAttribute('spacing') is "exact" 46 PASS textPathElement.getAttribute('spacing') is "exact"
47 PASS textPathElement.spacing.baseVal = -1 threw exception Error: SVG_INVALID_VAL UE_ERR: DOM SVG Exception 1. 47 PASS textPathElement.spacing.baseVal = -1 threw exception SVG_INVALID_VALUE_ERR: An invalid value was passed to an operation or assigned to an attribute..
48 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT 48 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
49 PASS textPathElement.getAttribute('spacing') is "exact" 49 PASS textPathElement.getAttribute('spacing') is "exact"
50 PASS textPathElement.spacing.baseVal = 0 threw exception Error: SVG_INVALID_VALU E_ERR: DOM SVG Exception 1. 50 PASS textPathElement.spacing.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR: An invalid value was passed to an operation or assigned to an attribute..
51 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT 51 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ EXACT
52 PASS textPathElement.getAttribute('spacing') is "exact" 52 PASS textPathElement.getAttribute('spacing') is "exact"
53 53
54 Switch to 'auto' 54 Switch to 'auto'
55 PASS textPathElement.spacing.baseVal = SVGTextPathElement.TEXTPATH_SPACINGTYPE_A UTO is SVGTextPathElement.TEXTPATH_SPACINGTYPE_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 56 PASS textPathElement.spacing.baseVal is SVGTextPathElement.TEXTPATH_SPACINGTYPE_ AUTO
57 PASS textPathElement.getAttribute('spacing') is "auto" 57 PASS textPathElement.getAttribute('spacing') is "auto"
58 PASS successfullyParsed is true 58 PASS successfullyParsed is true
59 59
60 TEST COMPLETE 60 TEST COMPLETE
61 61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698