Generate tests

This commit is contained in:
Leo Balter 2018-09-05 17:39:55 -04:00 committed by Rick Waldron
parent 20217a7eeb
commit daea4efc57
20 changed files with 460 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-async-gen-meth-prototype.case
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template
/*---
description: Static Async Generator Private Methods can be named prototype (class expression)
esid: prod-ClassElement
features: [async-iteration, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
var C = class {
static async * #prototype() {}
};

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-async-meth-prototype.case
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template
/*---
description: Static Async Private Methods can be named prototype (class expression)
esid: prod-ClassElement
features: [async-functions, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
var C = class {
static async #prototype() {}
};

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-gen-meth-prototype.case
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template
/*---
description: Static Generator Private Methods can be named prototype (class expression)
esid: prod-ClassElement
features: [generators, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
var C = class {
static * #prototype() {}
};

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-meth-prototype.case
// - src/class-elements/syntax/valid/cls-expr-elements-valid-syntax.template
/*---
description: Static Private Methods can be named prototype (class expression)
esid: prod-ClassElement
features: [class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
var C = class {
static #prototype() {}
};

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-async-gen-meth-prototype.case
// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template
/*---
description: Static Async Generator Private Methods can be named prototype (class declaration)
esid: prod-ClassElement
features: [async-iteration, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
class C {
static async * #prototype() {}
}

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-async-meth-prototype.case
// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template
/*---
description: Static Async Private Methods can be named prototype (class declaration)
esid: prod-ClassElement
features: [async-functions, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
class C {
static async #prototype() {}
}

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-gen-meth-prototype.case
// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template
/*---
description: Static Generator Private Methods can be named prototype (class declaration)
esid: prod-ClassElement
features: [generators, class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
class C {
static * #prototype() {}
}

View File

@ -0,0 +1,20 @@
// This file was procedurally generated from the following sources:
// - src/class-elements/grammar-static-private-meth-prototype.case
// - src/class-elements/syntax/valid/cls-decl-elements-valid-syntax.template
/*---
description: Static Private Methods can be named prototype (class declaration)
esid: prod-ClassElement
features: [class-static-methods-private, class]
flags: [generated]
info: |
Class Definitions / Static Semantics: Early Errors
ClassElement : static MethodDefinition
It is a Syntax Error if PropName of MethodDefinition is "prototype"
---*/
class C {
static #prototype() {}
}