Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 1 | Tests for ES6 class syntax containing semicolon in the class body |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | PASS class A { foo;() { } } threw exception SyntaxError: Unexpected token ;. |
| 7 | PASS class A { foo() ; { } } threw exception SyntaxError: Unexpected token ;. |
| 8 | PASS class A { get ; foo() { } } threw exception SyntaxError: Unexpected token ;. |
| 9 | PASS class A { get foo;() { } } threw exception SyntaxError: Unexpected token ;. |
| 10 | PASS class A { get foo() ; { } } threw exception SyntaxError: Unexpected token ;. |
| 11 | PASS class A { set ; foo(x) { } } threw exception SyntaxError: Unexpected token ;. |
| 12 | PASS class A { set foo;(x) { } } threw exception SyntaxError: Unexpected token ;. |
| 13 | PASS class A { set foo(x) ; { } } threw exception SyntaxError: Unexpected token ;. |
| 14 | PASS class A { ; } did not throw exception. |
| 15 | PASS class A { foo() { } ; } did not throw exception. |
| 16 | PASS class A { get foo() { } ; } did not throw exception. |
| 17 | PASS class A { set foo(x) { } ; } did not throw exception. |
| 18 | PASS class A { static foo() { } ; } did not throw exception. |
| 19 | PASS class A { static get foo() { } ; } did not throw exception. |
| 20 | PASS class A { static set foo(x) { } ; } did not throw exception. |
| 21 | PASS class A { ; foo() { } } did not throw exception. |
| 22 | PASS class A { ; get foo() { } } did not throw exception. |
| 23 | PASS class A { ; set foo(x) { } } did not throw exception. |
| 24 | PASS class A { ; static foo() { } } did not throw exception. |
| 25 | PASS class A { ; static get foo() { } } did not throw exception. |
| 26 | PASS class A { ; static set foo(x) { } } did not throw exception. |
| 27 | PASS class A { foo() { } ; foo() {} } did not throw exception. |
| 28 | PASS class A { foo() { } ; get foo() {} } did not throw exception. |
| 29 | PASS class A { foo() { } ; set foo(x) {} } did not throw exception. |
| 30 | PASS class A { foo() { } ; static foo() {} } did not throw exception. |
| 31 | PASS class A { foo() { } ; static get foo() {} } did not throw exception. |
| 32 | PASS class A { foo() { } ; static set foo(x) {} } did not throw exception. |
| 33 | PASS class A { get foo() { } ; foo() {} } did not throw exception. |
| 34 | PASS class A { get foo() { } ; get foo() {} } did not throw exception. |
| 35 | PASS class A { get foo() { } ; set foo(x) {} } did not throw exception. |
| 36 | PASS class A { get foo() { } ; static foo() {} } did not throw exception. |
| 37 | PASS class A { get foo() { } ; static get foo() {} } did not throw exception. |
| 38 | PASS class A { get foo() { } ; static set foo(x) {} } did not throw exception. |
| 39 | PASS class A { set foo(x) { } ; foo() {} } did not throw exception. |
| 40 | PASS class A { set foo(x) { } ; get foo() {} } did not throw exception. |
| 41 | PASS class A { set foo(x) { } ; set foo(x) {} } did not throw exception. |
| 42 | PASS class A { set foo(x) { } ; static foo() {} } did not throw exception. |
| 43 | PASS class A { set foo(x) { } ; static get foo() {} } did not throw exception. |
| 44 | PASS class A { set foo(x) { } ; static set foo(x) {} } did not throw exception. |
| 45 | PASS class A { static foo() { } ; foo() {} } did not throw exception. |
| 46 | PASS class A { static foo() { } ; get foo() {} } did not throw exception. |
| 47 | PASS class A { static foo() { } ; set foo(x) {} } did not throw exception. |
| 48 | PASS class A { static foo() { } ; static foo() {} } did not throw exception. |
| 49 | PASS class A { static foo() { } ; static get foo() {} } did not throw exception. |
| 50 | PASS class A { static foo() { } ; static set foo(x) {} } did not throw exception. |
| 51 | PASS class A { static get foo() { } ; foo() {} } did not throw exception. |
| 52 | PASS class A { static get foo() { } ; get foo() {} } did not throw exception. |
| 53 | PASS class A { static get foo() { } ; set foo(x) {} } did not throw exception. |
| 54 | PASS class A { static get foo() { } ; static foo() {} } did not throw exception. |
| 55 | PASS class A { static get foo() { } ; static get foo() {} } did not throw exception. |
| 56 | PASS class A { static get foo() { } ; static set foo(x) {} } did not throw exception. |
| 57 | PASS class A { static set foo(x) { } ; foo() {} } did not throw exception. |
| 58 | PASS class A { static set foo(x) { } ; get foo() {} } did not throw exception. |
| 59 | PASS class A { static set foo(x) { } ; set foo(x) {} } did not throw exception. |
| 60 | PASS class A { static set foo(x) { } ; static foo() {} } did not throw exception. |
| 61 | PASS class A { static set foo(x) { } ; static get foo() {} } did not throw exception. |
| 62 | PASS class A { static set foo(x) { } ; static set foo(x) {} } did not throw exception. |
| 63 | PASS successfullyParsed is true |
| 64 | |
| 65 | TEST COMPLETE |