Skip to content

Commit

Permalink
Generate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Sep 25, 2020
1 parent 4853f6d commit 21e97fb
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand Down Expand Up @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand All @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand All @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand All @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -22,6 +22,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let o = {
Expand All @@ -32,3 +33,12 @@ assert.sameValue(
o[await 9],
9
);
assert.sameValue(
o[String(await 9)],
9
);

} catch (e) {
$DONE(e);
}
$DONE();
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -22,6 +22,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let o = {
Expand All @@ -32,3 +33,12 @@ assert.sameValue(
o[await 9],
9
);
assert.sameValue(
o[String(await 9)],
9
);

} catch (e) {
$DONE(e);
}
$DONE();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


class C {
Expand Down Expand Up @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


class C {
Expand All @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand All @@ -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();
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -33,6 +33,7 @@ info: |
ComputedPropertyName:
[ AssignmentExpression ]
---*/
try {


let C = class {
Expand All @@ -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();

0 comments on commit 21e97fb

Please sign in to comment.