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

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

Issue 2447633002: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Created 4 years, 1 month 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 use of SVGAnimatedEnumeration within SVGMaskElement
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial 'maskUnits' value
8 PASS maskElement.maskUnits.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(maskElement.maskUnits.baseVal) is "number"
10 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
11
12 Switch to 'objectBoundingBox'
13 PASS maskElement.maskUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBO X is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
14 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGB OX
15 PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
16
17 Try setting invalid values
18 PASS maskElement.maskUnits.baseVal = 3 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provid ed (3) is larger than the largest allowed value (2)..
19 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGB OX
20 PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
21 PASS maskElement.maskUnits.baseVal = -1 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provi ded (65535) is larger than the largest allowed value (2)..
22 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGB OX
23 PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
24 PASS maskElement.maskUnits.baseVal = 0 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provid ed is 0, which is not settable..
25 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGB OX
26 PASS maskElement.getAttribute('maskUnits') is "objectBoundingBox"
27
28 Switch to 'userSpaceOnUse'
29 PASS maskElement.maskUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE i s SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
30 PASS maskElement.maskUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
31 PASS maskElement.getAttribute('maskUnits') is "userSpaceOnUse"
32
33 Check initial 'maskContentUnits' value
34 PASS maskElement.maskContentUnits.toString() is "[object SVGAnimatedEnumeration] "
35 PASS typeof(maskElement.maskContentUnits.baseVal) is "number"
36 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE
37
38 Switch to 'objectBoundingBox'
39 PASS maskElement.maskContentUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOU NDINGBOX is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
40 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
41 PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
42
43 Try setting invalid values
44 PASS maskElement.maskContentUnits.baseVal = 3 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (3) is larger than the largest allowed value (2)..
45 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
46 PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
47 PASS maskElement.maskContentUnits.baseVal = -1 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration valu e provided (65535) is larger than the largest allowed value (2)..
48 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
49 PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
50 PASS maskElement.maskContentUnits.baseVal = 0 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is 0, which is not settable..
51 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBO UNDINGBOX
52 PASS maskElement.getAttribute('maskContentUnits') is "objectBoundingBox"
53
54 Switch to 'userSpaceOnUse'
55 PASS maskElement.maskContentUnits.baseVal = SVGUnitTypes.SVG_UNIT_TYPE_USERSPACE ONUSE is SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE
56 PASS maskElement.maskContentUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPAC EONUSE
57 PASS maskElement.getAttribute('maskContentUnits') is "userSpaceOnUse"
58 PASS successfullyParsed is true
59
60 TEST COMPLETE
61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698