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

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

Issue 1162453002: [svg2] Make SVGLength wrap a CSSPrimitiveValue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review fixes Created 5 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 SVGLength API 1 This test checks the SVGLength API
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 length values 7 Check initial length values
8 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_NUMBER 8 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_NUMBER
9 PASS length.value is 0 9 PASS length.value is 0
10 PASS length.valueInSpecifiedUnits is 0 10 PASS length.valueInSpecifiedUnits is 0
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 PASS length.value is 2 55 PASS length.value is 2
56 PASS length.valueInSpecifiedUnits is 2 56 PASS length.valueInSpecifiedUnits is 2
57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 57 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
58 58
59 Check setting invalid 'valueAsString' arguments 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.. 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" 61 PASS length.valueAsString is "2px"
62 PASS length.value is 2 62 PASS length.value is 2
63 PASS length.valueInSpecifiedUnits is 2 63 PASS length.valueInSpecifiedUnits is 2
64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 64 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
65 PASS length.valueAsString = '1pX' threw exception SyntaxError: Failed to set the 'valueAsString' property on 'SVGLength': The value provided ('1pX') is invalid. . 65 PASS length.valueAsString = '1pX' did not throw exception.
66 PASS length.valueAsString is "2px" 66 PASS length.valueAsString is "1px"
67 PASS length.value is 2 67 PASS length.value is 1
68 PASS length.valueInSpecifiedUnits is 2 68 PASS length.valueInSpecifiedUnits is 1
69 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 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.. 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" 71 PASS length.valueAsString is "2px"
72 PASS length.value is 2 72 PASS length.value is 2
73 PASS length.valueInSpecifiedUnits is 2 73 PASS length.valueInSpecifiedUnits is 2
74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 74 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
75 75
76 Check setting invalid 'value' arguments 76 Check setting invalid 'value' arguments
77 PASS length.value = NaN threw exception TypeError: Failed to set the 'value' pro perty on 'SVGLength': The provided float value is non-finite.. 77 PASS length.value = NaN threw exception TypeError: Failed to set the 'value' pro perty on 'SVGLength': The provided float value is non-finite..
78 PASS length.value = Infinity threw exception TypeError: Failed to set the 'value ' property on 'SVGLength': The provided float value is non-finite.. 78 PASS length.value = Infinity threw exception TypeError: Failed to set the 'value ' property on 'SVGLength': The provided float value is non-finite..
79 PASS length.value is 2 79 PASS length.value is 2
80 PASS length.valueInSpecifiedUnits is 2 80 PASS length.valueInSpecifiedUnits is 2
81 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 81 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
82 82
83 Check setting invalid 'valueInSpecifiedUnits' arguments 83 Check setting invalid 'valueInSpecifiedUnits' arguments
84 PASS length.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float value i s non-finite.. 84 PASS length.valueInSpecifiedUnits = NaN threw exception TypeError: Failed to set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float value i s non-finite..
85 PASS length.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed t o set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float va lue is non-finite.. 85 PASS length.valueInSpecifiedUnits = Infinity threw exception TypeError: Failed t o set the 'valueInSpecifiedUnits' property on 'SVGLength': The provided float va lue is non-finite..
86 PASS length.value is 2 86 PASS length.value is 2
87 PASS length.valueInSpecifiedUnits is 2 87 PASS length.valueInSpecifiedUnits is 2
88 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 88 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
89 PASS successfullyParsed is true 89 PASS successfullyParsed is true
90 90
91 TEST COMPLETE 91 TEST COMPLETE
92 92
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698