1 Test setting valid and invalid properties of HTMLProgressElement.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test values before properties were set
13 PASS p.position is 0.7
14 Set value bigger than max
18 Set value less than zero
21 Set invalid value, should throw
22 PASS p.value = "200A"; threw exception TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite..
23 Set invalid max, should throw
24 PASS p.max = "max"; threw exception TypeError: Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite..
25 Set max to Infinity, should throw
26 PASS p.max = Infinity; threw exception TypeError: Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite..
27 Set value to NaN, should throw
28 PASS p.value = NaN; threw exception TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite..
29 Set value to null and max to 0
33 Set attributes to valid numbers
36 PASS parseInt(p.getAttribute('value')) is 5
37 PASS parseInt(p.getAttribute('max')) is 10
38 Set attributes to invalid values
41 PASS p.getAttribute('value') is 'ABC'
42 PASS p.getAttribute('max') is '#'
43 Set value and max to numbers with leading spaces
47 PASS successfullyParsed is true