1 Test setting valid and invalid properties of HTMLMeterElement.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test values before properties were set
20 Set attributes to improper values - 1
27 Set attributes to improper values - 2
32 Set attributes to improper values - 3
38 PASS m.optimum is 100.0
39 Set attributes to improper values - 4
45 PASS m.optimum is 12.5
46 Set value to invalid value
47 PASS m.value = "value"; threw exception TypeError: Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite..
49 PASS m.min = NaN; threw exception TypeError: Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite..
51 PASS m.max = Infinity; threw exception TypeError: Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite..
52 Set low to invalid value
53 PASS m.low = "low"; threw exception TypeError: Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite..
55 PASS m.high = NaN; threw exception TypeError: Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite..
56 Set optimum to Infinity
57 PASS m.optimum = Infinity; threw exception TypeError: Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite..
58 Set attributes to valid numbers
61 PASS parseInt(m.getAttribute('value')) is 5
62 PASS parseInt(m.getAttribute('max')) is 10
63 Set attributes to invalid values
66 PASS m.getAttribute('value') is 'ABC'
67 PASS m.getAttribute('max') is '#'
68 Set attributes to numbers with leading spaces
75 PASS successfullyParsed is true