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

Side by Side Diff: LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFilterElement-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 SVGFilterElement 1 This test checks the use of SVGAnimatedEnumeration within SVGFilterElement
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 'filterUnits' value 7 Check initial 'filterUnits' value
8 PASS filterElement.filterUnits.toString() is "[object SVGAnimatedEnumeration]" 8 PASS filterElement.filterUnits.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(filterElement.filterUnits.baseVal) is "number" 9 PASS typeof(filterElement.filterUnits.baseVal) is "number"
10 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON USE 10 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON USE
11 11
12 Switch to 'objectBoundingBox' 12 Switch to 'objectBoundingBox'
13 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDI NGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX 13 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDI NGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
14 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX 14 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX
15 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" 15 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
16 16
17 Try setting invalid values 17 Try setting invalid values
18 PASS filterElement.filterUnits.baseVal = 3 threw exception Error: SVG_INVALID_VA LUE_ERR: DOM SVG Exception 1. 18 PASS filterElement.filterUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ERR : An invalid value was passed to an operation or assigned to an attribute..
19 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX 19 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX
20 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" 20 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
21 PASS filterElement.filterUnits.baseVal = -1 threw exception Error: SVG_INVALID_V ALUE_ERR: DOM SVG Exception 1. 21 PASS filterElement.filterUnits.baseVal = -1 threw exception SVG_INVALID_VALUE_ER R: An invalid value was passed to an operation or assigned to an attribute..
22 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX 22 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX
23 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" 23 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
24 PASS filterElement.filterUnits.baseVal = 0 threw exception Error: SVG_INVALID_VA LUE_ERR: DOM SVG Exception 1. 24 PASS filterElement.filterUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ERR : An invalid value was passed to an operation or assigned to an attribute..
25 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX 25 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUND INGBOX
26 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox" 26 PASS filterElement.getAttribute('filterUnits') is "objectBoundingBox"
27 27
28 Switch to 'userSpaceOnUse' 28 Switch to 'userSpaceOnUse'
29 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONU SE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE 29 PASS filterElement.filterUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONU SE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
30 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON USE 30 PASS filterElement.filterUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEON USE
31 PASS filterElement.getAttribute('filterUnits') is "userSpaceOnUse" 31 PASS filterElement.getAttribute('filterUnits') is "userSpaceOnUse"
32 32
33 Check initial 'primitiveUnits' value 33 Check initial 'primitiveUnits' value
34 PASS filterElement.primitiveUnits.toString() is "[object SVGAnimatedEnumeration] " 34 PASS filterElement.primitiveUnits.toString() is "[object SVGAnimatedEnumeration] "
35 PASS typeof(filterElement.primitiveUnits.baseVal) is "number" 35 PASS typeof(filterElement.primitiveUnits.baseVal) is "number"
36 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE 36 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE
37 37
38 Switch to 'objectBoundingBox' 38 Switch to 'objectBoundingBox'
39 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOU NDINGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX 39 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOU NDINGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
40 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX 40 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
41 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" 41 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
42 42
43 Try setting invalid values 43 Try setting invalid values
44 PASS filterElement.primitiveUnits.baseVal = 3 threw exception Error: SVG_INVALID _VALUE_ERR: DOM SVG Exception 1. 44 PASS filterElement.primitiveUnits.baseVal = 3 threw exception SVG_INVALID_VALUE_ ERR: An invalid value was passed to an operation or assigned to an attribute..
45 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX 45 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
46 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" 46 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
47 PASS filterElement.primitiveUnits.baseVal = -1 threw exception Error: SVG_INVALI D_VALUE_ERR: DOM SVG Exception 1. 47 PASS filterElement.primitiveUnits.baseVal = -1 threw exception SVG_INVALID_VALUE _ERR: An invalid value was passed to an operation or assigned to an attribute..
48 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX 48 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
49 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" 49 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
50 PASS filterElement.primitiveUnits.baseVal = 0 threw exception Error: SVG_INVALID _VALUE_ERR: DOM SVG Exception 1. 50 PASS filterElement.primitiveUnits.baseVal = 0 threw exception SVG_INVALID_VALUE_ ERR: An invalid value was passed to an operation or assigned to an attribute..
51 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX 51 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
52 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox" 52 PASS filterElement.getAttribute('primitiveUnits') is "objectBoundingBox"
53 53
54 Switch to 'userSpaceOnUse' 54 Switch to 'userSpaceOnUse'
55 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACE ONUSE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE 55 PASS filterElement.primitiveUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACE ONUSE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
56 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE 56 PASS filterElement.primitiveUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE
57 PASS filterElement.getAttribute('primitiveUnits') is "userSpaceOnUse" 57 PASS filterElement.getAttribute('primitiveUnits') is "userSpaceOnUse"
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