| OLD | NEW |
| 1 Test setting valid and invalid properties of HTMLProgressElement. | 1 Test setting valid and invalid properties of HTMLProgressElement. |
| 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 p.value is 0 | 7 PASS p.value is 0 |
| 8 PASS p.max is 1 | 8 PASS p.max is 1 |
| 9 PASS p.position is -1 | 9 PASS p.position is -1 |
| 10 Set valid values | 10 Set valid values |
| 11 PASS p.value is 70 | 11 PASS p.value is 70 |
| 12 PASS p.max is 100 | 12 PASS p.max is 100 |
| 13 PASS p.position is 0.7 | 13 PASS p.position is 0.7 |
| 14 Set value bigger than max | 14 Set value bigger than max |
| 15 PASS p.value is 100 | 15 PASS p.value is 100 |
| 16 PASS p.max is 100 | 16 PASS p.max is 100 |
| 17 PASS p.position is 1 | 17 PASS p.position is 1 |
| 18 Set value less than zero | 18 Set value less than zero |
| 19 PASS p.value is 0 | 19 PASS p.value is 0 |
| 20 PASS p.position is 0 | 20 PASS p.position is 0 |
| 21 Set invalid value, should throw | 21 Set invalid value, should throw |
| 22 PASS p.value = "200A"; threw exception TypeError: Failed to set the 'value' prop
erty on 'HTMLProgressElement': The value provided is not a number.. | 22 PASS p.value = "200A"; threw exception TypeError: Failed to set the 'value' prop
erty on 'HTMLProgressElement': The provided double value is non-finite.. |
| 23 Set invalid max, should throw | 23 Set invalid max, should throw |
| 24 PASS p.max = "max"; threw exception TypeError: Failed to set the 'max' property
on 'HTMLProgressElement': The value provided is not a number.. | 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 | 25 Set max to Infinity, should throw |
| 26 PASS p.max = Infinity; threw exception TypeError: Failed to set the 'max' proper
ty on 'HTMLProgressElement': The value provided is infinite.. | 26 PASS p.max = Infinity; threw exception TypeError: Failed to set the 'max' proper
ty on 'HTMLProgressElement': The provided double value is non-finite.. |
| 27 Set value to NaN, should throw | 27 Set value to NaN, should throw |
| 28 PASS p.value = NaN; threw exception TypeError: Failed to set the 'value' propert
y on 'HTMLProgressElement': The value provided is not a number.. | 28 PASS p.value = NaN; threw exception TypeError: Failed to set the 'value' propert
y on 'HTMLProgressElement': The provided double value is non-finite.. |
| 29 Set value to null and max to 0 | 29 Set value to null and max to 0 |
| 30 PASS p.value is 0 | 30 PASS p.value is 0 |
| 31 PASS p.max is 1 | 31 PASS p.max is 1 |
| 32 PASS p.position is 0 | 32 PASS p.position is 0 |
| 33 Set attributes to valid numbers | 33 Set attributes to valid numbers |
| 34 PASS p.value is 5 | 34 PASS p.value is 5 |
| 35 PASS p.max is 10 | 35 PASS p.max is 10 |
| 36 PASS parseInt(p.getAttribute('value')) is 5 | 36 PASS parseInt(p.getAttribute('value')) is 5 |
| 37 PASS parseInt(p.getAttribute('max')) is 10 | 37 PASS parseInt(p.getAttribute('max')) is 10 |
| 38 Set attributes to invalid values | 38 Set attributes to invalid values |
| 39 PASS p.value is 0 | 39 PASS p.value is 0 |
| 40 PASS p.max is 1 | 40 PASS p.max is 1 |
| 41 PASS p.getAttribute('value') is 'ABC' | 41 PASS p.getAttribute('value') is 'ABC' |
| 42 PASS p.getAttribute('max') is '#' | 42 PASS p.getAttribute('max') is '#' |
| 43 Set value and max to numbers with leading spaces | 43 Set value and max to numbers with leading spaces |
| 44 PASS p.value is 0 | 44 PASS p.value is 0 |
| 45 PASS p.max is 1 | 45 PASS p.max is 1 |
| 46 PASS p.position is 0 | 46 PASS p.position is 0 |
| 47 PASS successfullyParsed is true | 47 PASS successfullyParsed is true |
| 48 | 48 |
| 49 TEST COMPLETE | 49 TEST COMPLETE |
| 50 | 50 |
| OLD | NEW |