Generate tests

This commit is contained in:
Leo Balter 2018-09-05 18:06:05 -04:00 committed by Rick Waldron
parent 75a579a0d4
commit 7766d0fb66
12 changed files with 300 additions and 0 deletions

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-privatename-constructor.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Private Fields cannot be named constructor (class expression)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElementName : PrivateName ;
It is a Syntax Error if StringValue of PrivateName is "#constructor"
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
#constructor
};

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-privatename-constructor.case
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
/*---
description: Static Private Fields cannot be named constructor (class expression)
esid: prod-ClassElement
features: [class-static-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElementName : PrivateName ;
It is a Syntax Error if StringValue of PrivateName is "#constructor"
---*/
throw "Test262: This statement should not be evaluated.";
var C = class {
static #constructor
};

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-privatename-constructor.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Private Fields cannot be named constructor (class declaration)
esid: prod-ClassElement
features: [class-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElementName : PrivateName ;
It is a Syntax Error if StringValue of PrivateName is "#constructor"
---*/
throw "Test262: This statement should not be evaluated.";
class C {
#constructor
}

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,25 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-privatename-constructor.case
// - src/class-elements/syntax/invalid/cls-decl-elements-invalid-syntax.template
/*---
description: Static Private Fields cannot be named constructor (class declaration)
esid: prod-ClassElement
features: [class-static-fields-private, class]
flags: [generated]
negative:
phase: parse
type: SyntaxError
info: |
Class Definitions / Static Semantics: Early Errors
ClassElementName : PrivateName ;
It is a Syntax Error if StringValue of PrivateName is "#constructor"
---*/
throw "Test262: This statement should not be evaluated.";
class C {
static #constructor
}