Generate tests

This commit is contained in:
Rick Waldron 2020-09-25 13:21:51 -04:00
parent 2aff8eb9a4
commit 3f2a2aa464
10 changed files with 548 additions and 0 deletions

View File

@ -0,0 +1,74 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-expression-accessors.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
get [await 9]() {
return 9;
}
set [await 9](v) {
return 9;
}
static get [await 9]() {
return 9;
}
static set [await 9](v) {
return 9;
}
};
let c = new C();
assert.sameValue(
c[await 9],
9
);
assert.sameValue(
c[await 9] = 9,
9
);
assert.sameValue(
C[await 9],
9
);
assert.sameValue(
C[await 9] = 9,
9
);

View File

@ -0,0 +1,56 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-expression.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
[await 9]() {
return 9;
}
static [await 9]() {
return 9;
}
};
let c = new C();
assert.sameValue(
c[await 9](),
9
);
assert.sameValue(
C[await 9](),
9
);

View File

@ -0,0 +1,53 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-expression-fields.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
[await 9] = 9;
static [await 9] = 9;
};
let c = new C();
assert.sameValue(
c[await 9],
9
);
assert.sameValue(
C[await 9],
9
);

View File

@ -0,0 +1,57 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-expression-fields-methods.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
[await 9] = () => {
return 9;
};
static [await 9] = () => {
return 9;
};
};
let c = new C();
assert.sameValue(
c[await 9](),
9
);
assert.sameValue(
C[await 9](),
9
);

View File

@ -0,0 +1,34 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/object-literal.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ObjectLiteral)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ObjectLiteral:
{ PropertyDefinitionList }
PropertyDefinitionList:
PropertyDefinition
PropertyDefinition:
PropertyName: AssignmentExpression
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let o = {
[await 9]: 9
};
assert.sameValue(
o[await 9],
9
);

View File

@ -0,0 +1,34 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/yield-expression.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ObjectLiteral)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ObjectLiteral:
{ PropertyDefinitionList }
PropertyDefinitionList:
PropertyDefinition
PropertyDefinition:
PropertyName: AssignmentExpression
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let o = {
[await 9]: 9
};
assert.sameValue(
o[await 9],
9
);

View File

@ -0,0 +1,74 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-declaration-accessors.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassDeclaration)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
class C {
get [await 9]() {
return 9;
}
set [await 9](v) {
return 9;
}
static get [await 9]() {
return 9;
}
static set [await 9](v) {
return 9;
}
};
let c = new C();
assert.sameValue(
c[await 9],
9
);
assert.sameValue(
c[await 9] = 9,
9
);
assert.sameValue(
C[await 9],
9
);
assert.sameValue(
C[await 9] = 9,
9
);

View File

@ -0,0 +1,56 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-declaration.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassDeclaration)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
class C {
[await 9]() {
return 9;
}
static [await 9]() {
return 9;
}
};
let c = new C();
assert.sameValue(
c[await 9](),
9
);
assert.sameValue(
C[await 9](),
9
);

View File

@ -0,0 +1,53 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-declaration-fields.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
[await 9] = 9;
static [await 9] = 9;
};
let c = new C();
assert.sameValue(
c[await 9],
9
);
assert.sameValue(
C[await 9],
9
);

View File

@ -0,0 +1,57 @@
// This file was procedurally generated from the following sources:
// - src/computed-property-names/computed-property-name-from-await-expression.case
// - src/computed-property-names/evaluation/class-declaration-fields-methods.template
/*---
description: Computed property name from condition expression (ComputedPropertyName in ClassExpression)
esid: prod-ComputedPropertyName
features: [computed-property-names, top-level-await]
flags: [generated, module]
info: |
ClassExpression:
classBindingIdentifier opt ClassTail
ClassTail:
ClassHeritage opt { ClassBody opt }
ClassBody:
ClassElementList
ClassElementList:
ClassElement
ClassElement:
MethodDefinition
MethodDefinition:
PropertyName ...
get PropertyName ...
set PropertyName ...
PropertyName:
ComputedPropertyName
ComputedPropertyName:
[ AssignmentExpression ]
---*/
let C = class {
[await 9] = () => {
return 9;
};
static [await 9] = () => {
return 9;
};
};
let c = new C();
assert.sameValue(
c[await 9](),
9
);
assert.sameValue(
C[await 9](),
9
);