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

Side by Side Diff: LayoutTests/fast/dom/HTMLMeterElement/set-meter-properties-expected.txt

Issue 131483008: Correctly report TypeError for HTML{Meter,Progress}Element setters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 Test setting valid and invalid properties of HTMLMeterElement. 1 Test setting valid and invalid properties of HTMLMeterElement.
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 Test values before properties were set 6 Test values before properties were set
7 PASS m.min is 0 7 PASS m.min is 0
8 PASS m.value is 0 8 PASS m.value is 0
9 PASS m.max is 1 9 PASS m.max is 1
10 PASS m.low is 0 10 PASS m.low is 0
(...skipping 26 matching lines...) Expand all
37 PASS m.high is 100.0 37 PASS m.high is 100.0
38 PASS m.optimum is 100.0 38 PASS m.optimum is 100.0
39 Set attributes to improper values - 4 39 Set attributes to improper values - 4
40 PASS m.min is 0.0 40 PASS m.min is 0.0
41 PASS m.value is 200.0 41 PASS m.value is 200.0
42 PASS m.max is 200.0 42 PASS m.max is 200.0
43 PASS m.low is 0.0 43 PASS m.low is 0.0
44 PASS m.high is 200.0 44 PASS m.high is 200.0
45 PASS m.optimum is 12.5 45 PASS m.optimum is 12.5
46 Set value to invalid value 46 Set value to invalid value
47 PASS m.value = "value"; threw exception NotSupportedError: Failed to set the 'va lue' property on 'HTMLMeterElement': The value provided is not a number.. 47 PASS m.value = "value"; threw exception TypeError: Failed to set the 'value' pro perty on 'HTMLMeterElement': The value provided is not a number..
48 Set min to NaN 48 Set min to NaN
49 PASS m.min = NaN; threw exception NotSupportedError: Failed to set the 'min' pro perty on 'HTMLMeterElement': The value provided is not a number.. 49 PASS m.min = NaN; threw exception TypeError: Failed to set the 'min' property on 'HTMLMeterElement': The value provided is not a number..
50 Set max to Infinity 50 Set max to Infinity
51 PASS m.max = Infinity; threw exception NotSupportedError: Failed to set the 'max ' property on 'HTMLMeterElement': The value provided is infinite.. 51 PASS m.max = Infinity; threw exception TypeError: Failed to set the 'max' proper ty on 'HTMLMeterElement': The value provided is infinite..
52 Set low to invalid value 52 Set low to invalid value
53 PASS m.low = "low"; threw exception NotSupportedError: Failed to set the 'low' p roperty on 'HTMLMeterElement': The value provided is not a number.. 53 PASS m.low = "low"; threw exception TypeError: Failed to set the 'low' property on 'HTMLMeterElement': The value provided is not a number..
54 Set high to NaN 54 Set high to NaN
55 PASS m.high = NaN; threw exception NotSupportedError: Failed to set the 'high' p roperty on 'HTMLMeterElement': The value provided is not a number.. 55 PASS m.high = NaN; threw exception TypeError: Failed to set the 'high' property on 'HTMLMeterElement': The value provided is not a number..
56 Set optimum to Infinity 56 Set optimum to Infinity
57 PASS m.optimum = Infinity; threw exception NotSupportedError: Failed to set the 'optimum' property on 'HTMLMeterElement': The value provided is infinite.. 57 PASS m.optimum = Infinity; threw exception TypeError: Failed to set the 'optimum ' property on 'HTMLMeterElement': The value provided is infinite..
58 Set attributes to valid numbers 58 Set attributes to valid numbers
59 PASS m.value is 5 59 PASS m.value is 5
60 PASS m.max is 10 60 PASS m.max is 10
61 PASS parseInt(m.getAttribute('value')) is 5 61 PASS parseInt(m.getAttribute('value')) is 5
62 PASS parseInt(m.getAttribute('max')) is 10 62 PASS parseInt(m.getAttribute('max')) is 10
63 Set attributes to invalid values 63 Set attributes to invalid values
64 PASS m.value is 0 64 PASS m.value is 0
65 PASS m.max is 1 65 PASS m.max is 1
66 PASS m.getAttribute('value') is 'ABC' 66 PASS m.getAttribute('value') is 'ABC'
67 PASS m.getAttribute('max') is '#' 67 PASS m.getAttribute('max') is '#'
68 Set attributes to numbers with leading spaces 68 Set attributes to numbers with leading spaces
69 PASS m.value is 0 69 PASS m.value is 0
70 PASS m.min is 0 70 PASS m.min is 0
71 PASS m.max is 1 71 PASS m.max is 1
72 PASS m.low is 0 72 PASS m.low is 0
73 PASS m.high is 1 73 PASS m.high is 1
74 PASS m.optimum is 0.5 74 PASS m.optimum is 0.5
75 PASS successfullyParsed is true 75 PASS successfullyParsed is true
76 76
77 TEST COMPLETE 77 TEST COMPLETE
78 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698