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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGAnimatedEnumeration-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 SVGAnimatedEnumeration API - utilizing the clipPathUnits pr operty of SVGClipPathElement
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial clipPathUnits value
8 PASS clipPathElement.clipPathUnits.toString() is "[object SVGAnimatedEnumeration ]"
9 PASS typeof(clipPathElement.clipPathUnits.baseVal) is "number"
10 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
11
12 Check that enumerations are static, caching value in a local variable and modify ing it, should have no effect
13 PASS enumRef is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX
14 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
15
16 Check assigning various valid and invalid values
17 PASS clipPathElement.clipPathUnits.baseVal = 3 threw exception TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration valu e provided (3) is larger than the largest allowed value (2)..
18 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
19 PASS clipPathElement.clipPathUnits.baseVal = -1 threw exception TypeError: Faile d to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration val ue provided (65535) is larger than the largest allowed value (2)..
20 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
21 PASS clipPathElement.clipPathUnits.baseVal = '1' is "1"
22 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
23 PASS clipPathElement.clipPathUnits.baseVal = 'aString' threw exception TypeError : Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumerat ion value provided is 0, which is not settable..
24 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_USERSPA CEONUSE
25 PASS clipPathElement.clipPathUnits.baseVal = 2 is SVGUnitTypes.SVG_UNIT_TYPE_OBJ ECTBOUNDINGBOX
26 PASS clipPathElement.clipPathUnits.baseVal = clipPathElement threw exception Typ eError: Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The en umeration value provided is 0, which is not settable..
27 PASS clipPathElement.clipPathUnits.baseVal is SVGUnitTypes.SVG_UNIT_TYPE_OBJECTB OUNDINGBOX
28 PASS successfullyParsed is true
29
30 TEST COMPLETE
31
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698