Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / platform / android / fast / js / const-expected.txt
1 CONSOLE ERROR: line 1: Uncaught TypeError: var 'bar' has already been declared
2 This test checks that const declarations in JavaScript work and are readonly.
3
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
5
6
7 PASS const redef='a'; const redef='a'; threw exception TypeError: const 'redef' has already been declared.
8 PASS x is "RIGHT"
9 PASS y is "RIGHT"
10 PASS a is 1
11 PASS one is 1
12 PASS a is 1
13 PASS one is 1
14 PASS a is 2
15 PASS one is 1
16 PASS a is 0
17 PASS one is 1
18 PASS a is 3
19 PASS one is 1
20 PASS a is 2
21 PASS one is 1
22 PASS function f() { const one = 1; one++; return one; } f(); is 1
23 PASS function f() { const oneString = '1'; return oneString++; } f(); is 1
24 PASS function f() { const one = 1; return one++; } f(); is 1
25 PASS function f() { const one = 1; one--; return one; } f(); is 1
26 PASS function f() { const oneString = '1'; return oneString--; } f(); is 1
27 PASS function f() { const one = 1; return one--; } f(); is 1
28 PASS function f() { const one = 1; ++one; return one; } f(); is 1
29 PASS function f() { const one = 1; return ++one; } f(); is 2
30 PASS function f() { const one = 1; --one; return one; } f(); is 1
31 PASS function f() { const one = 1; return --one; } f(); is 0
32 PASS function f() { const one = 1; one += 2; return one; } f(); is 1
33 PASS function f() { const one = 1; return one += 2; } f(); is 3
34 PASS function f() { const one = 1; one = 2; return one; } f(); is 1
35 PASS function f() { const one = 1; return one = 2; } f(); is 2
36 PASS one++ is 1
37 PASS one is 1
38 PASS one-- is 1
39 PASS one is 1
40 PASS ++one is 2
41 PASS one is 1
42 PASS --one is 0
43 PASS one is 1
44 PASS one += 1 is 2
45 PASS one is 1
46 PASS one = 2 is 2
47 PASS one is 1
48 PASS object.inWith1 is 'RIGHT'
49 PASS inWith2 is 'RIGHT'
50 PASS (function(){ one = 2; return one; })() is 1
51 PASS f() is f
52 PASS const a; is undefined
53 FAIL bodyId should be [object HTMLBodyElement] (of type object). Was Const initialiser overwrote existing property (of type string).
54 PASS ranConstInitialiser is true
55 FAIL successfullyParsed should be true. Was false.
56
57 TEST COMPLETE
58