From 21e97fb61621da18d6f05c531b4481462bc73f1a Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Fri, 25 Sep 2020 13:40:56 -0400 Subject: [PATCH] Generate tests --- ...ted-property-name-from-await-expression.js | 25 ++++++++++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- ...ted-property-name-from-await-expression.js | 12 ++++++++- ...ted-property-name-from-await-expression.js | 12 ++++++++- ...ted-property-name-from-await-expression.js | 25 ++++++++++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- ...ted-property-name-from-await-expression.js | 16 +++++++++++- 10 files changed, 160 insertions(+), 10 deletions(-) diff --git a/test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-await-expression.js b/test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-await-expression.js index ca3f0ecccf..bdf89f2136 100644 --- a/test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-await-expression.js +++ b/test/language/expressions/class/cpn-class-expr-accessors-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -72,3 +73,25 @@ assert.sameValue( C[await 9] = 9, 9 ); +assert.sameValue( + c[String(await 9)], + 9 +); +assert.sameValue( + c[String(await 9)] = 9, + 9 +); + +assert.sameValue( + C[String(await 9)], + 9 +); +assert.sameValue( + C[String(await 9)] = 9, + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/expressions/class/cpn-class-expr-computed-property-name-from-await-expression.js b/test/language/expressions/class/cpn-class-expr-computed-property-name-from-await-expression.js index 12c27e1b00..5cdd1f4fd8 100644 --- a/test/language/expressions/class/cpn-class-expr-computed-property-name-from-await-expression.js +++ b/test/language/expressions/class/cpn-class-expr-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -54,3 +55,16 @@ assert.sameValue( C[await 9](), 9 ); +assert.sameValue( + c[String(await 9)](), + 9 +); +assert.sameValue( + C[String(await 9)](), + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-await-expression.js b/test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-await-expression.js index adbe81f228..da93ec456c 100644 --- a/test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-await-expression.js +++ b/test/language/expressions/class/cpn-class-expr-fields-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -51,3 +52,16 @@ assert.sameValue( C[await 9], 9 ); +assert.sameValue( + c[String(await 9)], + 9 +); +assert.sameValue( + C[String(await 9)], + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-await-expression.js b/test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-await-expression.js index 781bd4d8cf..587fea8721 100644 --- a/test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-await-expression.js +++ b/test/language/expressions/class/cpn-class-expr-fields-methods-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -55,3 +56,16 @@ assert.sameValue( C[await 9](), 9 ); +assert.sameValue( + c[String(await 9)](), + 9 +); +assert.sameValue( + C[String(await 9)](), + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/expressions/object/cpn-obj-lit-computed-property-name-from-await-expression.js b/test/language/expressions/object/cpn-obj-lit-computed-property-name-from-await-expression.js index ef644ded6b..cf6d9cecaa 100644 --- a/test/language/expressions/object/cpn-obj-lit-computed-property-name-from-await-expression.js +++ b/test/language/expressions/object/cpn-obj-lit-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ObjectLiteral) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ObjectLiteral: { PropertyDefinitionList } @@ -22,6 +22,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let o = { @@ -32,3 +33,12 @@ assert.sameValue( o[await 9], 9 ); +assert.sameValue( + o[String(await 9)], + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/expressions/object/cpn-yield-expr-computed-property-name-from-await-expression.js b/test/language/expressions/object/cpn-yield-expr-computed-property-name-from-await-expression.js index 6ace25db5e..04f69e1d06 100644 --- a/test/language/expressions/object/cpn-yield-expr-computed-property-name-from-await-expression.js +++ b/test/language/expressions/object/cpn-yield-expr-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ObjectLiteral) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ObjectLiteral: { PropertyDefinitionList } @@ -22,6 +22,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let o = { @@ -32,3 +33,12 @@ assert.sameValue( o[await 9], 9 ); +assert.sameValue( + o[String(await 9)], + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-await-expression.js b/test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-await-expression.js index a053165d54..47e5ba3319 100644 --- a/test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-await-expression.js +++ b/test/language/statements/class/cpn-class-decl-accessors-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassDeclaration) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { class C { @@ -72,3 +73,25 @@ assert.sameValue( C[await 9] = 9, 9 ); +assert.sameValue( + c[String(await 9)], + 9 +); +assert.sameValue( + c[String(await 9)] = 9, + 9 +); + +assert.sameValue( + C[String(await 9)], + 9 +); +assert.sameValue( + C[String(await 9)] = 9, + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/statements/class/cpn-class-decl-computed-property-name-from-await-expression.js b/test/language/statements/class/cpn-class-decl-computed-property-name-from-await-expression.js index dba2d443d6..8410d64368 100644 --- a/test/language/statements/class/cpn-class-decl-computed-property-name-from-await-expression.js +++ b/test/language/statements/class/cpn-class-decl-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassDeclaration) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { class C { @@ -54,3 +55,16 @@ assert.sameValue( C[await 9](), 9 ); +assert.sameValue( + c[String(await 9)](), + 9 +); +assert.sameValue( + C[String(await 9)](), + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-await-expression.js b/test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-await-expression.js index 7b4076beb4..692f6f2db1 100644 --- a/test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-await-expression.js +++ b/test/language/statements/class/cpn-class-decl-fields-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -51,3 +52,16 @@ assert.sameValue( C[await 9], 9 ); +assert.sameValue( + c[String(await 9)], + 9 +); +assert.sameValue( + C[String(await 9)], + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE(); diff --git a/test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-await-expression.js b/test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-await-expression.js index d60db2db95..ce010b0dbb 100644 --- a/test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-await-expression.js +++ b/test/language/statements/class/cpn-class-decl-fields-methods-computed-property-name-from-await-expression.js @@ -5,7 +5,7 @@ description: Computed property name from condition expression (ComputedPropertyName in ClassExpression) esid: prod-ComputedPropertyName features: [computed-property-names, top-level-await] -flags: [generated, module] +flags: [generated, async, module] info: | ClassExpression: classBindingIdentifier opt ClassTail @@ -33,6 +33,7 @@ info: | ComputedPropertyName: [ AssignmentExpression ] ---*/ +try { let C = class { @@ -55,3 +56,16 @@ assert.sameValue( C[await 9](), 9 ); +assert.sameValue( + c[String(await 9)](), + 9 +); +assert.sameValue( + C[String(await 9)](), + 9 +); + +} catch (e) { + $DONE(e); +} +$DONE();