Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/js/const-expected.txt

Issue 1815833002: Rebaseline, fix, or remove various tests dealing with V8 behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 CONSOLE ERROR: line 1: Uncaught TypeError: Identifier 'bar' has already been dec lared
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: Identifier 're def' 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 initi aliser overwrote existing property (of type string).
54 PASS ranConstInitialiser is true
55 FAIL successfullyParsed should be true. Was false.
56
57 TEST COMPLETE
58
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698