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

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

Issue 2741153003: Convert LayoutTests/svg/dom/*.html js-tests.js to testharness.js based tests. (Closed)
Patch Set: Align with review comments Created 3 years, 9 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 SVGNumber API
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 Check initial number value
8 PASS num.value is 0
9
10 Check assigning number
11 PASS num.value = 100 is 100
12 PASS num.value = -100 is -100
13 PASS num.value = 12345678 is 12345678
14 PASS num.value = -num.value is -12345678
15
16 Check that numbers are static, caching value in a local variable and modifying i t, should have no effect
17 PASS numRef is 1000
18 PASS num.value is -12345678
19
20 Check assigning invalid number, number should be 0 afterwards
21 PASS num.value = 0 is 0
22 PASS num.value = num threw exception TypeError: Failed to set the 'value' proper ty on 'SVGNumber': The provided float value is non-finite..
23 PASS num.value = 'aString' threw exception TypeError: Failed to set the 'value' property on 'SVGNumber': The provided float value is non-finite..
24 PASS num.value = svgElement threw exception TypeError: Failed to set the 'value' property on 'SVGNumber': The provided float value is non-finite..
25 PASS num.value = NaN threw exception TypeError: Failed to set the 'value' proper ty on 'SVGNumber': The provided float value is non-finite..
26 PASS num.value = Infinity threw exception TypeError: Failed to set the 'value' p roperty on 'SVGNumber': The provided float value is non-finite..
27 PASS num.value is 0
28 PASS num.value = null is null
29
30 Check that the number is now null
31 PASS num.value is 0
32 PASS successfullyParsed is true
33
34 TEST COMPLETE
35
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/SVGNumber.html ('k') | third_party/WebKit/LayoutTests/svg/dom/SVGPoint.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698