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

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

Issue 930053002: Apply TypeChecking=Unrestricted to SVG{Number,Length,Transform,Angle} (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 This test checks the SVGNumber API 1 This test checks the SVGNumber API
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 6
7 Check initial number value 7 Check initial number value
8 PASS num.value is 0 8 PASS num.value is 0
9 9
10 Check assigning number 10 Check assigning number
11 PASS num.value = 100 is 100 11 PASS num.value = 100 is 100
12 PASS num.value = -100 is -100 12 PASS num.value = -100 is -100
13 PASS num.value = 12345678 is 12345678 13 PASS num.value = 12345678 is 12345678
14 PASS num.value = -num.value is -12345678 14 PASS num.value = -num.value is -12345678
15 15
16 Check that numbers are static, caching value in a local variable and modifying i t, should have no effect 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 17 PASS numRef is 1000
18 PASS num.value is -12345678 18 PASS num.value is -12345678
19 19
20 Check assigning invalid number, number should be 0 afterwards 20 Check assigning invalid number, number should be 0 afterwards
21 PASS num.value = num is num 21 PASS num.value = 0 is 0
22 PASS num.value = 'aString' is 'aString' 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 = svgElement is svgElement 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 is NaN 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
25 PASS num.value = null is null 28 PASS num.value = null is null
26 29
27 Check that the number is now null 30 Check that the number is now null
28 PASS num.value is 0 31 PASS num.value is 0
29 PASS successfullyParsed is true 32 PASS successfullyParsed is true
30 33
31 TEST COMPLETE 34 TEST COMPLETE
32 35
OLDNEW
« no previous file with comments | « LayoutTests/svg/dom/SVGLength-expected.txt ('k') | LayoutTests/svg/dom/SVGTransform-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698