Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLMeterElement / set-meter-properties-expected.txt
1 Test setting valid and invalid properties of HTMLMeterElement.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Test values before properties were set
7 PASS m.min is 0
8 PASS m.value is 0
9 PASS m.max is 1
10 PASS m.low is 0
11 PASS m.high is 1
12 PASS m.optimum is 0.5
13 Set valid values
14 PASS m.min is -10
15 PASS m.value is 70
16 PASS m.max is 100
17 PASS m.low is 10.1
18 PASS m.high is 99.5
19 PASS m.optimum is 70
20 Set attributes to improper values - 1
21 PASS m.min is -10
22 PASS m.value is 100
23 PASS m.max is 100
24 PASS m.low is 100
25 PASS m.high is 100
26 PASS m.optimum is 0
27 Set attributes to improper values - 2
28 PASS m.min is 200.0
29 PASS m.value is 200.0
30 PASS m.max is 200.0
31 PASS m.low is 200.0
32 Set attributes to improper values - 3
33 PASS m.min is 100.0
34 PASS m.value is 100.0
35 PASS m.max is 100.0
36 PASS m.low is 100.0
37 PASS m.high is 100.0
38 PASS m.optimum is 100.0
39 Set attributes to improper values - 4
40 PASS m.min is 0.0
41 PASS m.value is 200.0
42 PASS m.max is 200.0
43 PASS m.low is 0.0
44 PASS m.high is 200.0
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..
48 Set min to NaN
49 PASS m.min = NaN; threw exception TypeError: Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite..
50 Set max to Infinity
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..
54 Set high to NaN
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
59 PASS m.value is 5
60 PASS m.max is 10
61 PASS parseInt(m.getAttribute('value')) is 5
62 PASS parseInt(m.getAttribute('max')) is 10
63 Set attributes to invalid values
64 PASS m.value is 0
65 PASS m.max is 1
66 PASS m.getAttribute('value') is 'ABC'
67 PASS m.getAttribute('max') is '#'
68 Set attributes to numbers with leading spaces
69 PASS m.value is 0
70 PASS m.min is 0
71 PASS m.max is 1
72 PASS m.low is 0
73 PASS m.high is 1
74 PASS m.optimum is 0.5
75 PASS successfullyParsed is true
76
77 TEST COMPLETE
78