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

Side by Side Diff: test/webkit/class-syntax-expression-expected.txt

Issue 1448183002: [tests] Fix webkit class syntax tests to handle destructuring binding (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, renamed flag Created 5 years, 1 month 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
« no previous file with comments | « test/webkit/class-syntax-expression.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests for ES6 class syntax expressions 1 Tests for ES6 class syntax expressions
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS constructorCallCount is 0 6 PASS constructorCallCount is 0
7 PASS A.someStaticMethod() is staticMethodValue 7 PASS A.someStaticMethod() is staticMethodValue
8 PASS A.someStaticGetter is getterValue 8 PASS A.someStaticGetter is getterValue
9 PASS setterValue = undefined; A.someStaticSetter = 123; setterValue is 123 9 PASS setterValue = undefined; A.someStaticSetter = 123; setterValue is 123
10 PASS (new A).someInstanceMethod() is instanceMethodValue 10 PASS (new A).someInstanceMethod() is instanceMethodValue
(...skipping 12 matching lines...) Expand all
23 PASS x = class { get constructor() {} } threw exception SyntaxError: Class const ructor may not be an accessor. 23 PASS x = class { get constructor() {} } threw exception SyntaxError: Class const ructor may not be an accessor.
24 PASS x = class { set constructor() {} } threw exception SyntaxError: Class const ructor may not be an accessor. 24 PASS x = class { set constructor() {} } threw exception SyntaxError: Class const ructor may not be an accessor.
25 PASS x = class { constructor() {} static constructor() { return staticMethodValu e; } } did not throw exception. 25 PASS x = class { constructor() {} static constructor() { return staticMethodValu e; } } did not throw exception.
26 PASS x = class { constructor() {} static constructor() { return staticMethodValu e; } }; x.constructor() is staticMethodValue 26 PASS x = class { constructor() {} static constructor() { return staticMethodValu e; } }; x.constructor() is staticMethodValue
27 PASS x = class { constructor() {} static prototype() {} } threw exception Syntax Error: Classes may not have static property named prototype. 27 PASS x = class { constructor() {} static prototype() {} } threw exception Syntax Error: Classes may not have static property named prototype.
28 PASS x = class { constructor() {} static get prototype() {} } threw exception Sy ntaxError: Classes may not have static property named prototype. 28 PASS x = class { constructor() {} static get prototype() {} } threw exception Sy ntaxError: Classes may not have static property named prototype.
29 PASS x = class { constructor() {} static set prototype() {} } threw exception Sy ntaxError: Classes may not have static property named prototype. 29 PASS x = class { constructor() {} static set prototype() {} } threw exception Sy ntaxError: Classes may not have static property named prototype.
30 PASS x = class { constructor() {} prototype() { return instanceMethodValue; } } did not throw exception. 30 PASS x = class { constructor() {} prototype() { return instanceMethodValue; } } did not throw exception.
31 PASS x = class { constructor() {} prototype() { return instanceMethodValue; } }; (new x).prototype() is instanceMethodValue 31 PASS x = class { constructor() {} prototype() { return instanceMethodValue; } }; (new x).prototype() is instanceMethodValue
32 PASS x = class { constructor() {} set foo(a) {} } did not throw exception. 32 PASS x = class { constructor() {} set foo(a) {} } did not throw exception.
33 FAIL x = class { constructor() {} set foo({x, y}) {} } should not throw exceptio n. Threw exception SyntaxError: Unexpected token {. 33 PASS x = class { constructor() {} set foo({x, y}) {} } did not throw exception.
34 PASS x = class { constructor() {} set foo() {} } threw exception SyntaxError: Se tter must have exactly one formal parameter.. 34 PASS x = class { constructor() {} set foo() {} } threw exception SyntaxError: Se tter must have exactly one formal parameter..
35 PASS x = class { constructor() {} set foo(a, b) {} } threw exception SyntaxError : Setter must have exactly one formal parameter.. 35 PASS x = class { constructor() {} set foo(a, b) {} } threw exception SyntaxError : Setter must have exactly one formal parameter..
36 PASS x = class { constructor() {} get foo() {} } did not throw exception. 36 PASS x = class { constructor() {} get foo() {} } did not throw exception.
37 PASS x = class { constructor() {} get foo(x) {} } threw exception SyntaxError: G etter must not have any formal parameters.. 37 PASS x = class { constructor() {} get foo(x) {} } threw exception SyntaxError: G etter must not have any formal parameters..
38 PASS x = class { constructor() {} get foo({x, y}) {} } threw exception SyntaxErr or: Unexpected token {. 38 PASS x = class { constructor() {} get foo({x, y}) {} } threw exception SyntaxErr or: Getter must not have any formal parameters..
39 PASS successfullyParsed is true 39 PASS successfullyParsed is true
40 40
41 TEST COMPLETE 41 TEST COMPLETE
OLDNEW
« no previous file with comments | « test/webkit/class-syntax-expression.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698