Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLProgressElement / set-progress-properties-expected.txt
1 Test setting valid and invalid properties of HTMLProgressElement.
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 p.value is 0
8 PASS p.max is 1
9 PASS p.position is -1
10 Set valid values
11 PASS p.value is 70
12 PASS p.max is 100
13 PASS p.position is 0.7
14 Set value bigger than max
15 PASS p.value is 100
16 PASS p.max is 100
17 PASS p.position is 1
18 Set value less than zero
19 PASS p.value is 0
20 PASS p.position is 0
21 Set invalid value, should throw
22 PASS p.value = "200A"; threw exception TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The value provided is not a number..
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..
25 Set max to Infinity, should throw
26 PASS p.max = Infinity; threw exception TypeError: Failed to set the 'max' property on 'HTMLProgressElement': The value provided is infinite..
27 Set value to NaN, should throw
28 PASS p.value = NaN; threw exception TypeError: Failed to set the 'value' property on 'HTMLProgressElement': The value provided is not a number..
29 Set value to null and max to 0
30 PASS p.value is 0
31 PASS p.max is 1
32 PASS p.position is 0
33 Set attributes to valid numbers
34 PASS p.value is 5
35 PASS p.max is 10
36 PASS parseInt(p.getAttribute('value')) is 5
37 PASS parseInt(p.getAttribute('max')) is 10
38 Set attributes to invalid values
39 PASS p.value is 0
40 PASS p.max is 1
41 PASS p.getAttribute('value') is 'ABC'
42 PASS p.getAttribute('max') is '#'
43 Set value and max to numbers with leading spaces
44 PASS p.value is 0
45 PASS p.max is 1
46 PASS p.position is 0
47 PASS successfullyParsed is true
48
49 TEST COMPLETE
50