commit-queue@webkit.org | efc86f5 | 2015-12-30 21:08:16 +0000 | [diff] [blame] | 1 | Tests for ES6 arrow function, access to the super property in arrow function |
| 2 | |
| 3 | On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| 4 | |
| 5 | |
| 6 | PASS (new B()).getValueParentFunction() is expectedValue |
| 7 | PASS (new C(false)).value is expectedValue |
commit-queue@webkit.org | ebd964f | 2016-03-26 07:08:21 +0000 | [diff] [blame] | 8 | PASS (new C(true)) threw exception ReferenceError: Cannot access uninitialized variable.. |
commit-queue@webkit.org | efc86f5 | 2015-12-30 21:08:16 +0000 | [diff] [blame] | 9 | PASS E.getParentStaticValue() is expectedValue |
| 10 | PASS f.prop is expectedValue + "-" + expectedValue |
| 11 | PASS f.prop is expectedValue + "-" + "new-value" |
| 12 | PASS (new F()).getParentValue() is expectedValue |
gskachkov@gmail.com | c85e6e6 | 2016-03-04 09:52:39 +0000 | [diff] [blame] | 13 | PASS (new F()).genGetParentValue().next().value is expectedValue |
| 14 | PASS (new F()).genGetParentValueDeepArrow().next().value is expectedValue |
gskachkov@gmail.com | 3dcbb56 | 2016-05-13 08:22:21 +0000 | [diff] [blame] | 15 | PASS (new class extends A { constructor() { ((a = super(), b = super.getValue())=>{ this.id = b; })() } }).id is expectedValue |
| 16 | PASS (new class extends A { constructor() { ((a = super(), b = new.target)=>{ this.newTarget = b; })(); expectedNewTarget = new.target;} }).newTarget is expectedNewTarget |
| 17 | PASS (new class extends A { constructor() { ((a = super.getValue())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 18 | PASS (new class extends A { constructor() { ((a = super.getValue(), b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 19 | PASS (new class extends F { constructor() { ((a = super.prop)=>{ return a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 20 | PASS (new class extends F { constructor() { ((a = super.prop, b=super())=>{ return a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 21 | PASS (new class extends F { constructor() { ((a = (super.prop = "value"))=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 22 | PASS (new class extends F { constructor() { ((a = (super.prop = "value"), b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 23 | PASS (new class extends F { constructor() { ((a = super.genGetParentValue().next().value)=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
| 24 | PASS (new class extends F { constructor() { ((a = super.genGetParentValue().next().value, b=super())=>{ this.id = a; })() } }) threw exception ReferenceError: Cannot access uninitialized variable.. |
commit-queue@webkit.org | efc86f5 | 2015-12-30 21:08:16 +0000 | [diff] [blame] | 25 | PASS successfullyParsed is true |
| 26 | |
| 27 | TEST COMPLETE |
| 28 | |