Pass | Default values | Asserts runPass | assert_equals(0, 0, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(0, 0, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(1, 1, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(0, 0, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(1, 1, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(0.5, 0.5, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | Setting values to min, max, low, high and optimum | Asserts runPass | assert_equals(3, 3, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(-10.1, -10.1, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(10.1, 10.1, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(-9.1, -9.1, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(9.1, 9.1, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(3, 3, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | max < min | Asserts runPass | assert_equals(0, 0, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(0, 0, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(0, 0, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(0, 0, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(0, 0, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(0, 0, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | value < min | Asserts runPass | assert_equals(10, 10, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | value > max | Asserts runPass | assert_equals(20, 20, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | low < min | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | low > max | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(20, 20, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | high < low | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(12, 12, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(12, 12, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | high > max | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(15, 15, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | optimum < min | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(10, 10, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | optimum > max | Asserts runPass | assert_equals(15, 15, "meter value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:65:11) | Pass | assert_equals(10, 10, "min value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:66:11) | Pass | assert_equals(20, 20, "max value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:67:11) | Pass | assert_equals(10, 10, "low value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:68:11) | Pass | assert_equals(20, 20, "high value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:69:11) | Pass | assert_equals(20, 20, "optimum value")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:70:11) |
|
Pass | Invalid floating-point number values | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.value = "foobar"; }", "value attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:75:11) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.min = "foobar"; }", "min attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:76:11) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.max = "foobar"; }", "max attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:77:11) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.low = "foobar"; }", "low attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:78:11) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.high = "foobar"; }", "high attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:79:11) | Pass | assert_throws_js(function "function TypeError() { [native code] }", function "function() { meter.optimum = "foobar"; }", "optimum attribute")
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:80:11) |
|
Pass | value must be 0 when a string is given | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:86:11) |
|
Pass | default value of min is 0 | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:90:11) |
|
Pass | If min is not specified and value is smaller than the default value of min (i.e. 0), the actual value must be 0 | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:94:11) |
|
Pass | default value of max is 1.0 | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:98:11) |
|
Pass | If max is not specified and value is larger than the default value of max (i.e. 1.0), the actual value must be 1.0 | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:102:11) |
|
Pass | If a value smaller than 1.0 is given to min and max is not specified, max must be the same value as its default value (i.e. 1.0) | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:106:11) |
|
Pass | If a value smaller than 1.0 is given to min, max is not specified, and value is larger than the default value of max (i.e. 1.0), the actual value must be 1.0 | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:110:11) |
|
Pass | If a value larger than or equal to 1.0 is given to min and max is not specified, max must be the same value as min | Asserts runPass | assert_equals(12.1, 12.1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:114:11) |
|
Pass | If a value larger than or equal to 1.0 is given to min and max is not specified, the actual value must be the same value as min | Asserts runPass | assert_equals(12.1, 12.1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:118:11) |
|
Pass | If a value smaller than 0 is given to max and min is not specified, min must be be the same value as its default value (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:122:11) |
|
Pass | If a value smaller than 0 is given to max and min is not specified, max must be be the same value as the default value of min (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:126:11) |
|
Pass | If a value smaller than 0 is given to max and min is not specified, the actual value must be be the same value as the default value of min (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:130:11) |
|
Pass | If a value larger than or equal to 0 is given to max and min is not specified, max must be the same value as the default value of min (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:134:11) |
|
Pass | If a value larger than or equal to 0 is given to max and min is not specified, min must be the same value as its default value (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:138:11) |
|
Pass | If a value larger than or equal to 0 is given to max and min is not specified, the actual value must be the same value as the default value of min (i.e. 0) | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:142:11) |
|
Pass | min must be 0 when a string is given | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:146:11) |
|
Pass | If a string is given to min and value is smaller than the default value of min (i.e. 0), the actual value must be 0 | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:150:11) |
|
Pass | max must be 1.0 when a string is given | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:154:11) |
|
Pass | If a string is given to max and value is larger than the default value of min (i.e. 1.0), the actual value must be 1.0 | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:158:11) |
|
Pass | giving a string to low must not affect the actual value | Asserts runPass | assert_equals(-10.3, -10.3)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:162:11) |
|
Pass | high must equal max when a string is given to high | Asserts runPass | assert_equals(1.5, 1.5)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:166:11) |
|
Pass | giving a string to high must not affect the actual value | Asserts runPass | assert_equals(1.5, 1.5)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:170:11) |
|
Pass | value must not be smaller than min | Asserts runPass | assert_equals(4.5, 4.5)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:174:11) |
|
Pass | value must not be larger than max | Asserts runPass | assert_equals(52.02, 52.02)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:178:11) |
|
Pass | default low and high values equal min and max, respectively | Asserts runPass | assert_array_equals([-12.3, 3.4], [-12.3, 3.4])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:183:11) |
|
Pass | default low and high values equal 0 and 1.0 respectively, if both low and high are not specified | Asserts runPass | assert_array_equals([0, 1], [0, 1])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:188:11) |
|
Pass | low must not be smaller than min | Asserts runPass | assert_array_equals([12.3, 12.3, 12.3], [12.3, 12.3, 12.3])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:193:11) |
|
Pass | low must not be larger than max | Asserts runPass | assert_array_equals([-34.5, -34.5, -34.5], [-34.5, -34.5, -34.5])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:198:11) |
|
Pass | high must not be smaller than min | Asserts runPass | assert_array_equals([12.3, 12.3, 12.3], [12.3, 12.3, 12.3])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:203:11) |
|
Pass | high must not be larger than max | Asserts runPass | assert_array_equals([-34.5, -34.5, -34.5], [-34.5, -34.5, -34.5])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:208:11) |
|
Pass | If min is not specified, low must not be smaller than default value of min (i.e. 0) | Asserts runPass | assert_array_equals([0, 0, 0], [0, 0, 0])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:213:11) |
|
Pass | If a value smaller than low is given to high, it must be set to the same value as low | Asserts runPass | assert_array_equals([-10.3, -10.3, -9], [-10.3, -10.3, -9])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:218:11) |
|
Pass | If max is not specified, high must not be larger than default value of max (i.e. 1.0) | Asserts runPass | assert_array_equals([1, 1], [1, 1])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:223:11) |
|
Pass | optimum smaller than min | Asserts runPass | assert_equals(0, 0)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:227:11) |
|
Pass | optimum (smaller than min) must not affect min and the actual value | Asserts runPass | assert_array_equals([0, 0], [0, 0])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:232:11) |
|
Pass | optimum smaller than max | Asserts runPass | assert_equals(1, 1)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:236:11) |
|
Pass | optimum (larger than max) must not affect max and the actual value | Asserts runPass | assert_array_equals([1, 1], [1, 1])
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:241:11) |
|
Pass | default optimum value is the midpoint between min and max | Asserts runPass | assert_equals(-49.463499999999996, -49.463499999999996)
at Test.<anonymous> ( /html/semantics/forms/the-meter-element/meter.html:246:11) |
|