Generate tests

This commit is contained in:
Leo Balter 2018-09-05 16:46:26 -04:00 committed by Rick Waldron
parent 92c83dfbd4
commit af9bcfef5f
24 changed files with 548 additions and 8 deletions

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-async-gen.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Async Generator Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [async-iteration, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
async * method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-async.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Async Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [async-functions, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
async method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-gen.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Generator Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [generators, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
* method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-get.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Accessor get Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
get method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-method.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-async-gen.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Private Async Generators Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [async-iteration, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
async * #method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-async.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Private Async Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [async-functions, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
async #method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-gen.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Private Generators Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [generators, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
* #method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-method.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Private Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
#method() {
super();
}
};

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-set.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Accessor set Methods cannot contain direct super (class expression)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
set method(_) {
super();
}
};

View File

@ -2,9 +2,9 @@
// - src/class-elements/grammar-special-meth-ctor-get.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class expression)
description: Accessor get Methods cannot be named "constructor" (class expression)
esid: prod-ClassElement
features: [generators, class]
features: [class]
flags: [generated]
negative:
phase: parse

View File

@ -2,9 +2,9 @@
// - src/class-elements/grammar-special-meth-ctor-set.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class expression)
description: Accessor set Methods cannot be named "constructor" (class expression)
esid: prod-ClassElement
features: [generators, class]
features: [class]
flags: [generated]
negative:
phase: parse

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-async-gen.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Async Generator Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [async-iteration, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
async * method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-async.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Async Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [async-functions, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
async method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-gen.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Generator Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [generators, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
* method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-get.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Accessor get Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
get method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-method.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-async-gen.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Private Async Generators Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [async-iteration, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
async * #method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-async.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Private Async Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [async-functions, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
async #method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-gen.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Private Generators Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [generators, class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
* #method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-private-method.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Private Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [class-methods-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
#method() {
super();
}
}

View File

@ -0,0 +1,27 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-special-meth-contains-super-set.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Accessor set Methods cannot contain direct super (class declaration)
esid: prod-ClassElement
features: [class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
---*/
throw "Test262: This statement should not be evaluated.";
class C {
set method(_) {
super();
}
}

View File

@ -2,9 +2,9 @@
// - src/class-elements/grammar-special-meth-ctor-get.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class declaration)
description: Accessor get Methods cannot be named "constructor" (class declaration)
esid: prod-ClassElement
features: [generators, class]
features: [class]
flags: [generated]
negative:
phase: parse

View File

@ -2,9 +2,9 @@
// - src/class-elements/grammar-special-meth-ctor-set.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Generator Methods cannot be named "constructor" (class declaration)
description: Accessor set Methods cannot be named "constructor" (class declaration)
esid: prod-ClassElement
features: [generators, class]
features: [class]
flags: [generated]
negative:
phase: parse