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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years 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
11 PASS length.valueAsString is "0" 11 PASS length.valueAsString is "0"
12 12
13 Set value to be 2px 13 Set value to be 2px
14 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 14 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
15 PASS length.value is 2 15 PASS length.value is 2
16 PASS length.valueInSpecifiedUnits is 2 16 PASS length.valueInSpecifiedUnits is 2
17 PASS length.valueAsString is "2px" 17 PASS length.valueAsString is "2px"
18 18
19 Check invalid arguments for 'convertToSpecifiedUnits' 19 Check invalid arguments for 'convertToSpecifiedUnits'
20 PASS length.convertToSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN) threw exce ption NotSupportedError: The implementation did not support the requested type o f object or operation.. 20 PASS length.convertToSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN) threw exce ption NoModificationAllowedError: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed to set the 'convertToSpecifiedUnits' property on 'SVGLength ': The specified SVGLengthMode is invalid..
21 PASS length.convertToSpecifiedUnits(-1) threw exception NotSupportedError: The i mplementation did not support the requested type of object or operation.. 21 PASS length.convertToSpecifiedUnits(-1) threw exception NoModificationAllowedErr or: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed to set th e 'convertToSpecifiedUnits' property on 'SVGLength': The specified SVGLengthMode is invalid..
22 PASS length.convertToSpecifiedUnits(11) threw exception NotSupportedError: The i mplementation did not support the requested type of object or operation.. 22 PASS length.convertToSpecifiedUnits(11) threw exception NoModificationAllowedErr or: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed to set th e 'convertToSpecifiedUnits' property on 'SVGLength': The specified SVGLengthMode is invalid..
23 PASS length.convertToSpecifiedUnits('aString') threw exception NotSupportedError : The implementation did not support the requested type of object or operation.. 23 PASS length.convertToSpecifiedUnits('aString') threw exception NoModificationAll owedError: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed to set the 'convertToSpecifiedUnits' property on 'SVGLength': The specified SVGLen gthMode is invalid..
24 PASS length.convertToSpecifiedUnits(length) threw exception NotSupportedError: T he implementation did not support the requested type of object or operation.. 24 PASS length.convertToSpecifiedUnits(length) threw exception NoModificationAllowe dError: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed to se t the 'convertToSpecifiedUnits' property on 'SVGLength': The specified SVGLength Mode is invalid..
25 PASS length.convertToSpecifiedUnits(svgElement) threw exception NotSupportedErro r: The implementation did not support the requested type of object or operation. . 25 PASS length.convertToSpecifiedUnits(svgElement) threw exception NoModificationAl lowedError: Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Failed t o set the 'convertToSpecifiedUnits' property on 'SVGLength': The specified SVGLe ngthMode is invalid..
26 PASS length.convertToSpecifiedUnits() threw exception TypeError: Failed to execu te 'convertToSpecifiedUnits' on 'SVGLength': 1 argument required, but only 0 pre sent.. 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 27 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
28 PASS length.value is 2 28 PASS length.value is 2
29 PASS length.valueInSpecifiedUnits is 2 29 PASS length.valueInSpecifiedUnits is 2
30 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 30 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
31 31
32 Check invalid arguments for 'newValueSpecifiedUnits' 32 Check invalid arguments for 'newValueSpecifiedUnits'
33 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN, 4) threw ex ception NotSupportedError: The implementation did not support the requested type of object or operation.. 33 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_UNKNOWN, 4) threw ex ception NoModificationAllowedError: Failed to execute 'newValueSpecifiedUnits' o n 'SVGLength': Failed to set the 'newValueSpecifiedUnits' property on 'SVGLength ': The specified SVGLengthMode is invalid..
34 PASS length.newValueSpecifiedUnits(-1, 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 34 PASS length.newValueSpecifiedUnits(-1, 4) threw exception NoModificationAllowedE rror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to set t he 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGLengthMode is invalid..
35 PASS length.newValueSpecifiedUnits(11, 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 35 PASS length.newValueSpecifiedUnits(11, 4) threw exception NoModificationAllowedE rror: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to set t he 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGLengthMode is invalid..
36 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString') is un defined. 36 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 'aString') is un defined.
37 PASS length.value is NaN 37 PASS length.value is NaN
38 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined. 38 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined.
39 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, length) is undef ined. 39 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, length) is undef ined.
40 PASS length.value is NaN 40 PASS length.value is NaN
41 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined. 41 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, 0) is undefined.
42 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, svgElement) is u ndefined. 42 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX, svgElement) is u ndefined.
43 PASS length.value is NaN 43 PASS length.value is NaN
44 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': 2 argument s required, but only 1 present.. 44 PASS length.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX) threw exception TypeError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': 2 argument s required, but only 1 present..
45 PASS length.newValueSpecifiedUnits('aString', 4) threw exception NotSupportedErr or: The implementation did not support the requested type of object or operation .. 45 PASS length.newValueSpecifiedUnits('aString', 4) threw exception NoModificationA llowedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed t o set the 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGLen gthMode is invalid..
46 PASS length.newValueSpecifiedUnits(length, 4) threw exception NotSupportedError: The implementation did not support the requested type of object or operation.. 46 PASS length.newValueSpecifiedUnits(length, 4) threw exception NoModificationAllo wedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to s et the 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGLength Mode is invalid..
47 PASS length.newValueSpecifiedUnits(svgElement, 4) threw exception NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.. 47 PASS length.newValueSpecifiedUnits(svgElement, 4) threw exception NoModification AllowedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to set the 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGLe ngthMode is invalid..
48 PASS length.newValueSpecifiedUnits('aString', 'aString') threw exception NotSupp ortedError: The implementation did not support the requested type of object or o peration.. 48 PASS length.newValueSpecifiedUnits('aString', 'aString') threw exception NoModif icationAllowedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to set the 'newValueSpecifiedUnits' property on 'SVGLength': The specifie d SVGLengthMode is invalid..
49 PASS length.newValueSpecifiedUnits(length, length) threw exception NotSupportedE rror: The implementation did not support the requested type of object or operati on.. 49 PASS length.newValueSpecifiedUnits(length, length) threw exception NoModificatio nAllowedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Failed to set the 'newValueSpecifiedUnits' property on 'SVGLength': The specified SVGL engthMode is invalid..
50 PASS length.newValueSpecifiedUnits(svgElement, svgElement) threw exception NotSu pportedError: The implementation did not support the requested type of object or operation.. 50 PASS length.newValueSpecifiedUnits(svgElement, svgElement) threw exception NoMod ificationAllowedError: Failed to execute 'newValueSpecifiedUnits' on 'SVGLength' : Failed to set the 'newValueSpecifiedUnits' property on 'SVGLength': The specif ied SVGLengthMode is invalid..
51 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 51 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
52 PASS length.value is 2 52 PASS length.value is 2
53 PASS length.valueInSpecifiedUnits is 2 53 PASS length.valueInSpecifiedUnits is 2
54 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX 54 PASS length.unitType is SVGLength.SVG_LENGTHTYPE_PX
55 PASS successfullyParsed is true 55 PASS successfullyParsed is true
56 56
57 TEST COMPLETE 57 TEST COMPLETE
58 58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698