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

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

Issue 2271223002: Convert LayoutTests/svg/dom/SVGLength*.html js-tests.js tests to testharness.js based tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved length to local Created 4 years, 3 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
OLDNEW
(Empty)
1 This test checks the SVGLength API
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial length values
8 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_NUMBER
9 PASS length.value is 0
10 PASS length.valueInSpecifiedUnits is 0
11 PASS length.valueAsString is "0"
12
13 Set value to be 2px
14 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
15 PASS length.value is 2
16 PASS length.valueInSpecifiedUnits is 2
17 PASS length.valueAsString is "2px"
18
19 Check invalid arguments for 'convertToSpecifiedUnits'
20 PASS length.convertToSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN) threw exce ption NotSupportedError: Failed to execute 'convertToSpecifiedUnits' on 'SVGLeng th': Cannot convert to unknown or invalid units (0)..
21 PASS length.convertToSpecifiedUnits(-1) threw exception NotSupportedError: Faile d to execute 'convertToSpecifiedUnits' on 'SVGLength': Cannot convert to unknown or invalid units (65535)..
22 PASS length.convertToSpecifiedUnits(11) threw exception NotSupportedError: Faile d to execute 'convertToSpecifiedUnits' on 'SVGLength': Cannot convert to unknown or invalid units (11)..
23 PASS length.convertToSpecifiedUnits('aString') threw exception NotSupportedError : Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Cannot convert to unknown or invalid units (0)..
24 PASS length.convertToSpecifiedUnits(length) threw exception NotSupportedError: F ailed to execute 'convertToSpecifiedUnits' on 'SVGLength': Cannot convert to unk nown or invalid units (0)..
25 PASS length.convertToSpecifiedUnits(svgElement) threw exception NotSupportedErro r: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Cannot convert to unknown or invalid units (0)..
26 PASS length.convertToSpecifiedUnits() threw exception TypeError: Failed to execu te 'convertToSpecifiedUnits' on 'SVGLength': 1 argument required, but only 0 pre sent..
27 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
28 PASS length.value is 2
29 PASS length.valueInSpecifiedUnits is 2
30 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
31
32 Check invalid arguments for 'newValueSpecifiedUnits'
33 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN, 4) threw ex ception NotSupportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLen gth': Cannot set value with unknown or invalid units (0)..
34 PASS length.newValueSpecifiedUnits(-1, 4) threw exception NotSupportedError: Fai led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un known or invalid units (65535)..
35 PASS length.newValueSpecifiedUnits(11, 4) threw exception NotSupportedError: Fai led to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with un known or invalid units (11)..
36 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined.
37 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString') threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite..
38 PASS length.value is 0
39 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, length) threw ex ception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Th e provided float value is non-finite..
40 PASS length.value is 0
41 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, svgElement) thre w exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength' : The provided float value is non-finite..
42 PASS length.value is 0
43 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, NaN) threw excep tion TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The p rovided float value is non-finite..
44 PASS length.value is 0
45 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, Infinity) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite..
46 PASS length.value is 0
47 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': 2 argument s required, but only 1 present..
48 PASS length.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErr or: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with unknown or invalid units (0)..
49 PASS length.newValueSpecifiedUnits(length, 4) threw exception NotSupportedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value wit h unknown or invalid units (0)..
50 PASS length.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedEr ror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Cannot set value with unknown or invalid units (0)..
51 PASS length.newValueSpecifiedUnits('aString', 'aString') threw exception TypeErr or: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided floa t value is non-finite..
52 PASS length.newValueSpecifiedUnits(length, length) threw exception TypeError: Fa iled to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float valu e is non-finite..
53 PASS length.newValueSpecifiedUnits(svgElement, svgElement) threw exception TypeE rror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided fl oat value is non-finite..
54 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
55 PASS length.value is 2
56 PASS length.valueInSpecifiedUnits is 2
57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
58
59 Check setting invalid 'valueAsString' arguments
60 PASS length.valueAsString = '10deg' threw exception SyntaxError: Failed to set t he 'valueAsString' property on 'SVGLength': The value provided ('10deg') is inva lid..
61 PASS length.valueAsString is "2px"
62 PASS length.value is 2
63 PASS length.valueInSpecifiedUnits is 2
64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
65 PASS length.valueAsString = '1pX' did not throw exception.
66 PASS length.valueAsString is "1px"
67 PASS length.value is 1
68 PASS length.valueInSpecifiedUnits is 1
69 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
70 PASS length.valueAsString = ',5 em' threw exception SyntaxError: Failed to set t he 'valueAsString' property on 'SVGLength': The value provided (',5 em') is inva lid..
71 PASS length.valueAsString is "2px"
72 PASS length.value is 2
73 PASS length.valueInSpecifiedUnits is 2
74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
75 PASS length.valueAsString = null threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('null') is invalid. .
76 PASS length.valueAsString is "2px"
77 PASS length.value is 2
78 PASS length.valueInSpecifiedUnits is 2
79 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
80
81 Check setting invalid 'value' arguments
82 PASS length.value = NaN threw exception TypeError: Failed to set the 'value' pro perty on 'SVGLength': The provided float value is non-finite..
83 PASS length.value = Infinity threw exception TypeError: Failed to set the 'value ' property on 'SVGLength': The provided float value is non-finite..
84 PASS length.value is 2
85 PASS length.valueInSpecifiedUnits is 2
86 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
87
88 Check setting invalid 'valueInSpecifiedUnits' arguments
89 PASS length.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float value i s non-finite..
90 PASS length.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed t o set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float va lue is non-finite..
91 PASS length.value is 2
92 PASS length.valueInSpecifiedUnits is 2
93 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
94 PASS successfullyParsed is true
95
96 TEST COMPLETE
97
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/SVGLength.html ('k') | third_party/WebKit/LayoutTests/svg/dom/SVGLength-px.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698