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

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

Issue 2416163002: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Created 4 years, 2 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 use of SVGAnimatedEnumeration within SVGFETurbulenceElement
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial 'type' value
8 PASS feTurbulenceElement.type.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(feTurbulenceElement.type.baseVal) is "number"
10 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_FRACTALNOISE
11
12 Switch to 'turbulence'
13 PASS feTurbulenceElement.type.baseVal = SVGFETurbulenceElement.SVG_TURBULENCE_TY PE_TURBULENCE is SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE
14 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_TURBULENCE
15 PASS feTurbulenceElement.getAttribute('type') is "turbulence"
16
17 Try setting invalid values
18 PASS feTurbulenceElement.type.baseVal = 3 threw exception TypeError: Failed to s et the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pro vided (3) is larger than the largest allowed value (2)..
19 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_TURBULENCE
20 PASS feTurbulenceElement.getAttribute('type') is "turbulence"
21 PASS feTurbulenceElement.type.baseVal = -1 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr ovided (65535) is larger than the largest allowed value (2)..
22 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_TURBULENCE
23 PASS feTurbulenceElement.getAttribute('type') is "turbulence"
24 PASS feTurbulenceElement.type.baseVal = 0 threw exception TypeError: Failed to s et the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pro vided is 0, which is not settable..
25 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_TURBULENCE
26 PASS feTurbulenceElement.getAttribute('type') is "turbulence"
27
28 Switch to 'fractalNoise'
29 PASS feTurbulenceElement.type.baseVal = SVGFETurbulenceElement.SVG_TURBULENCE_TY PE_FRACTALNOISE is SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE
30 PASS feTurbulenceElement.type.baseVal is SVGFETurbulenceElement.SVG_TURBULENCE_T YPE_FRACTALNOISE
31 PASS feTurbulenceElement.getAttribute('type') is "fractalNoise"
32
33 Check initial 'stitchTiles' value
34 PASS feTurbulenceElement.stitchTiles.toString() is "[object SVGAnimatedEnumerati on]"
35 PASS typeof(feTurbulenceElement.stitchTiles.baseVal) is "number"
36 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_STITCH
37
38 Switch to 'noStitch'
39 PASS feTurbulenceElement.stitchTiles.baseVal = SVGFETurbulenceElement.SVG_STITCH TYPE_NOSTITCH is SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH
40 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_NOSTITCH
41 PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
42
43 Try setting invalid values
44 PASS feTurbulenceElement.stitchTiles.baseVal = 3 threw exception TypeError: Fail ed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration va lue provided (3) is larger than the largest allowed value (2)..
45 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_NOSTITCH
46 PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
47 PASS feTurbulenceElement.stitchTiles.baseVal = -1 threw exception TypeError: Fai led to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration v alue provided (65535) is larger than the largest allowed value (2)..
48 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_NOSTITCH
49 PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
50 PASS feTurbulenceElement.stitchTiles.baseVal = 0 threw exception TypeError: Fail ed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration va lue provided is 0, which is not settable..
51 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_NOSTITCH
52 PASS feTurbulenceElement.getAttribute('stitchTiles') is "noStitch"
53
54 Switch to 'stitch'
55 PASS feTurbulenceElement.stitchTiles.baseVal = SVGFETurbulenceElement.SVG_STITCH TYPE_STITCH is SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH
56 PASS feTurbulenceElement.stitchTiles.baseVal is SVGFETurbulenceElement.SVG_STITC HTYPE_STITCH
57 PASS feTurbulenceElement.getAttribute('stitchTiles') is "stitch"
58 PASS successfullyParsed is true
59
60 TEST COMPLETE
61
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698