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

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

Issue 2389803004: Convert LayoutTests/svg/dom/SVGAnimatedEnumeration*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments 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 SVGFEColorMatrixElemen t
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 feColorMatrixElement.type.toString() is "[object SVGAnimatedEnumeration]"
9 PASS typeof(feColorMatrixElement.type.baseVal) is "number"
10 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_MATRIX
11
12 Switch to 'saturate'
13 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR IX_TYPE_SATURATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE
14 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_SATURATE
15 PASS feColorMatrixElement.getAttribute('type') is "saturate"
16
17 Switch to 'hueRotate'
18 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR IX_TYPE_HUEROTATE is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE
19 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_HUEROTATE
20 PASS feColorMatrixElement.getAttribute('type') is "hueRotate"
21
22 Switch to 'luminanceToAlpha'
23 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR IX_TYPE_LUMINANCETOALPHA is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMIN ANCETOALPHA
24 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_LUMINANCETOALPHA
25 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
26
27 Try setting invalid values
28 PASS feColorMatrixElement.type.baseVal = 5 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr ovided (5) is larger than the largest allowed value (4)..
29 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_LUMINANCETOALPHA
30 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
31 PASS feColorMatrixElement.type.baseVal = -1 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value p rovided (65535) is larger than the largest allowed value (4)..
32 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_LUMINANCETOALPHA
33 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
34 PASS feColorMatrixElement.type.baseVal = 0 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value pr ovided is 0, which is not settable..
35 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_LUMINANCETOALPHA
36 PASS feColorMatrixElement.getAttribute('type') is "luminanceToAlpha"
37
38 Switch to 'matrix'
39 PASS feColorMatrixElement.type.baseVal = SVGFEColorMatrixElement.SVG_FECOLORMATR IX_TYPE_MATRIX is SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX
40 PASS feColorMatrixElement.type.baseVal is SVGFEColorMatrixElement.SVG_FECOLORMAT RIX_TYPE_MATRIX
41 PASS feColorMatrixElement.getAttribute('type') is "matrix"
42 PASS successfullyParsed is true
43
44 TEST COMPLETE
45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698