v8/test/message
Michael Starzinger 5572a6ec73 [test] Add call-undeclared-constructor message test.
R=rmcilroy@chromium.org

Change-Id: Ie5109ca54917c062ba70d55bd80cfad7832b5ea9
Reviewed-on: https://chromium-review.googlesource.com/595992
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47064}
2017-08-02 07:31:31 +00:00
..
regress [runtime] Fix detection of construct frames in stack traces. 2017-06-16 09:27:36 +00:00
arrow-bare-rest-param.js
arrow-bare-rest-param.out
arrow-formal-parameters.js
arrow-formal-parameters.out
arrow-invalid-rest-2.js
arrow-invalid-rest-2.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
arrow-invalid-rest.js
arrow-invalid-rest.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
arrow-missing.js
arrow-missing.out
arrow-param-after-rest-2.js
arrow-param-after-rest-2.out
arrow-param-after-rest.js
arrow-param-after-rest.out
arrow-strict-eval-bare-parameter.js
arrow-strict-eval-bare-parameter.out
arrow-two-rest-params.js
arrow-two-rest-params.out
asm-assignment-undeclared.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-assignment-undeclared.out [asm.js] Fix assignment with undeclared target. 2017-03-30 08:36:17 +00:00
asm-function-mismatch-def.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-function-mismatch-def.out [asm.js] Test and fix function type checking. 2017-04-07 12:10:45 +00:00
asm-function-mismatch-use.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-function-mismatch-use.out [asm.js] Test and fix function type checking. 2017-04-07 12:10:45 +00:00
asm-function-redefined.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-function-redefined.out [asm.js] Test and fix function name collisions. 2017-04-07 09:03:11 +00:00
asm-function-undefined.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-function-undefined.out [asm.js] Test and fix function table definition failures. 2017-04-11 16:46:26 +00:00
asm-function-variable-collision.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-function-variable-collision.out [asm.js] Test and fix function name collisions. 2017-04-07 09:03:11 +00:00
asm-import-wrong-annotation.js [asm.js] Fix validation failure in module variable import. 2017-05-05 11:39:06 +00:00
asm-import-wrong-annotation.out [asm.js] Fix validation failure in module variable import. 2017-05-05 11:39:06 +00:00
asm-import-wrong-object.js [asm.js] Fix validation failure in module variable import. 2017-05-05 11:39:06 +00:00
asm-import-wrong-object.out [asm.js] Fix validation failure in module variable import. 2017-05-05 11:39:06 +00:00
asm-linking-bogus-heap.js [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-linking-bogus-heap.out [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-linking-bogus-stdlib.js [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-linking-bogus-stdlib.out [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-linking-missing-heap.js [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-linking-missing-heap.out [asm.js] Report module linking failures to the console. 2017-05-19 11:31:12 +00:00
asm-missing-parameter-annotation.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-missing-parameter-annotation.out [asm.js] Make validation error messages consistent. 2017-03-29 20:55:12 +00:00
asm-missing-return-annotation.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-missing-return-annotation.out [asm.js] Make validation error messages consistent. 2017-03-29 20:55:12 +00:00
asm-table-mismatch-def.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-table-mismatch-def.out [asm.js] Test and fix function table type checks. 2017-04-10 08:47:34 +00:00
asm-table-mismatch-use.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-table-mismatch-use.out [asm.js] Test and fix function table type checks. 2017-04-10 08:47:34 +00:00
asm-table-redefined.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-table-redefined.out [asm.js] Test and fix function table definition failures. 2017-04-11 16:46:26 +00:00
asm-table-undefined.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-table-undefined.out [asm.js] Test and fix function table definition failures. 2017-04-11 16:46:26 +00:00
asm-table-variable-collision.js [asm.js] Remove deprecated --fast-validate-asm flag. 2017-05-04 13:52:39 +00:00
asm-table-variable-collision.out [asm.js] Test and fix function table definition failures. 2017-04-11 16:46:26 +00:00
async-arrow-invalid-rest-2.js [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
async-arrow-invalid-rest-2.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
async-arrow-invalid-rest.js [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
async-arrow-invalid-rest.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
async-arrow-param-after-rest.js [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
async-arrow-param-after-rest.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
await-non-async.js [parser] Provide better error when incorrectly using await 2017-07-25 22:53:58 +00:00
await-non-async.out [parser] Provide better error when incorrectly using await 2017-07-25 22:53:58 +00:00
call-non-constructable.js
call-non-constructable.out
call-primitive-constructor.js
call-primitive-constructor.out
call-primitive-function.js
call-primitive-function.out
call-undeclared-constructor.js [test] Add call-undeclared-constructor message test. 2017-08-02 07:31:31 +00:00
call-undeclared-constructor.out [test] Add call-undeclared-constructor message test. 2017-08-02 07:31:31 +00:00
call-undeclared-function.js
call-undeclared-function.out
class-constructor-accessor.js
class-constructor-accessor.out
class-constructor-generator.js
class-constructor-generator.out
class-spread-property.js [parser] Fix fatal error on spread in class properties 2017-05-02 18:03:13 +00:00
class-spread-property.out [parser] Fix fatal error on spread in class properties 2017-05-02 18:03:13 +00:00
console.js [d8] console methods must not throw. 2017-04-26 09:48:29 +00:00
console.out [d8] console methods must not throw. 2017-04-26 09:48:29 +00:00
const-decl-no-init2.js
const-decl-no-init2.out
const-decl-no-init-sloppy.out
const-decl-no-init.js
const-decl-no-init.out
default-parameter-tdz-arrow.js
default-parameter-tdz-arrow.out
default-parameter-tdz.js
default-parameter-tdz.out
destructuring-array-non-iterable-number.js [parser] Better error msg for destructuring non iterable 2017-06-19 17:44:21 +00:00
destructuring-array-non-iterable-number.out [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-object-literal-complex.js [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-object-literal-complex.out [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-object-literal.js [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-object-literal.out [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-object.js [parser] Better error msg for destructuring non iterable 2017-06-19 17:44:21 +00:00
destructuring-array-non-iterable-object.out [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
destructuring-array-non-iterable-undefined.js Fix error message while array destructuring undefined 2017-07-17 22:18:19 +00:00
destructuring-array-non-iterable-undefined.out Fix error message while array destructuring undefined 2017-07-17 22:18:19 +00:00
destructuring-decl-no-init-array2.js
destructuring-decl-no-init-array2.out
destructuring-decl-no-init-array.js
destructuring-decl-no-init-array.out
destructuring-decl-no-init-obj2.js
destructuring-decl-no-init-obj2.out
destructuring-decl-no-init-obj.js
destructuring-decl-no-init-obj.out
destructuring-function-non-iterable.js [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-function-non-iterable.out [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-modify-const.js
destructuring-modify-const.out
destructuring-new-callable-non-iterable.js [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-new-callable-non-iterable.out [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-non-function-non-iterable.js [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-non-function-non-iterable.out [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
destructuring-undefined-computed-property.js [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
destructuring-undefined-computed-property.out [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
destructuring-undefined-number-property.js [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
destructuring-undefined-number-property.out [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
destructuring-undefined-string-property.js [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
destructuring-undefined-string-property.out [parser] Better error message when destructuring against undefined/null 2017-06-15 21:52:58 +00:00
export-duplicate-as.js
export-duplicate-as.out
export-duplicate-default.js
export-duplicate-default.out
export-duplicate.js
export-duplicate.out
for-in-let-loop-initializers-strict.js
for-in-let-loop-initializers-strict.out
for-in-loop-initializers-destructuring.js
for-in-loop-initializers-destructuring.out
for-in-loop-initializers-strict.js
for-in-loop-initializers-strict.out
for-loop-invalid-lhs.js
for-loop-invalid-lhs.out
for-of-let-loop-initializers.js
for-of-let-loop-initializers.out
for-of-loop-initializers-sloppy.js
for-of-loop-initializers-sloppy.out
for-of-loop-initializers-strict.js
for-of-loop-initializers-strict.out
for-of-non-iterable.js [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
for-of-non-iterable.out [parser] Improve error message for destructuring non iterable 2017-07-06 19:57:44 +00:00
for-of-throw-in-body.js
for-of-throw-in-body.out
formal-parameters-bad-rest.js
formal-parameters-bad-rest.out
formal-parameters-strict-body.js
formal-parameters-strict-body.out
formal-parameters-trailing-comma.js
formal-parameters-trailing-comma.out
function-param-after-rest.js [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
function-param-after-rest.out [parser] Fix parse errors for async arrow function edge cases 2017-05-04 22:43:42 +00:00
function-sent-escaped.js
function-sent-escaped.out
generators-throw1.js
generators-throw1.out
generators-throw2.js
generators-throw2.out
get-iterator1.js [prettyprinter] improve call-printing of GetIterator nodes 2017-04-11 01:53:49 +00:00
get-iterator1.out [parser] Provide better error when destructuring callable 2017-08-01 01:19:08 +00:00
get-iterator-return-non-receiver.js [parser] Better error msg for destructuring non iterable 2017-06-19 17:44:21 +00:00
get-iterator-return-non-receiver.out [parser] Better error msg for destructuring non iterable 2017-06-19 17:44:21 +00:00
import-as-eval.js
import-as-eval.out
import-as-redeclaration.js
import-as-redeclaration.out
import-as-reserved-word.js
import-as-reserved-word.out
import-eval.js
import-eval.out
import-redeclaration.js
import-redeclaration.out
import-reserved-word.js
import-reserved-word.out
instanceof-noncallable.js
instanceof-noncallable.out
instanceof-nonobject.js
instanceof-nonobject.out
invalid-spread-2.js
invalid-spread-2.out
invalid-spread.js
invalid-spread.out
isvar.js
isvar.out
let-lexical-declaration-destructuring-brace-in-single-statement.js Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-declaration-destructuring-brace-in-single-statement.out Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-declaration-destructuring-in-single-statement.js Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-declaration-destructuring-in-single-statement.out Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-declaration-in-single-statement.js Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-declaration-in-single-statement.out Report unexpected lexical decl also without destructuring 2017-02-17 10:57:32 +00:00
let-lexical-name-in-array-prohibited.js
let-lexical-name-in-array-prohibited.out
let-lexical-name-in-object-prohibited.js
let-lexical-name-in-object-prohibited.out
let-lexical-name-prohibited.js
let-lexical-name-prohibited.out
message.gyp
message.isolate
message.status [asm.js] Widen test coverage to message tests. 2017-03-29 08:42:32 +00:00
modules-cycle1.js
modules-cycle1.out
modules-cycle2.js
modules-cycle2.out
modules-cycle3.js
modules-cycle3.out
modules-cycle4.js
modules-cycle4.out
modules-cycle5.js [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-cycle5.out [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-cycle6.js [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-cycle6.out [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-duplicate-export1.js
modules-duplicate-export1.out
modules-duplicate-export2.js
modules-duplicate-export2.out
modules-duplicate-export3.js
modules-duplicate-export3.out
modules-duplicate-export4.js
modules-duplicate-export4.out
modules-import1.js
modules-import1.out
modules-import2.js
modules-import2.out
modules-import3.js
modules-import3.out
modules-import4.js
modules-import4.out
modules-import5.js
modules-import5.out
modules-import6.js
modules-import6.out
modules-import-redeclare1.js
modules-import-redeclare1.out
modules-import-redeclare2.js
modules-import-redeclare2.out
modules-import-redeclare3.js
modules-import-redeclare3.out
modules-skip-cycle2.js
modules-skip-cycle3.js
modules-skip-cycle5.js [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-skip-cycle6.js [modules] Fix bug in Module::Instantiate. 2017-02-28 19:00:58 +00:00
modules-star-conflict1.js
modules-star-conflict1.out
modules-star-conflict2.js
modules-star-conflict2.out
modules-star-default.js
modules-star-default.out
modules-undefined-export1.js
modules-undefined-export1.out
modules-undefined-export2.js
modules-undefined-export2.out
new-target-assignment.js
new-target-assignment.out
new-target-escaped.js
new-target-escaped.out
new-target-for-loop.js
new-target-for-loop.out
new-target-postfix-op.js
new-target-postfix-op.out
new-target-prefix-op.js
new-target-prefix-op.out
nf-yield-in-generator.js
nf-yield-in-generator.out
nf-yield-strict-in-generator.js
nf-yield-strict-in-generator.out
nf-yield-strict.js
nf-yield-strict.out
nfe-yield-generator.js
nfe-yield-generator.out
nfe-yield-strict.js
nfe-yield-strict.out
non-alphanum.js
non-alphanum.out
non-use-strict-hex-escape.js
non-use-strict-hex-escape.out
non-use-strict-octal-escape.js
non-use-strict-octal-escape.out
non-use-strict-uhex-escape.js
non-use-strict-uhex-escape.out
nonstrict-arguments.js
nonstrict-arguments.out
nonstrict-eval.js
nonstrict-eval.out
nonstrict-with.js
nonstrict-with.out
object-rest-assignment-pattern.js [parser] Update {Binding,Assignment}RestPattern 2017-07-14 00:10:06 +00:00
object-rest-assignment-pattern.out [parser] Update {Binding,Assignment}RestPattern 2017-07-14 00:10:06 +00:00
object-rest-binding-pattern.js [parser] Update {Binding,Assignment}RestPattern 2017-07-14 00:10:06 +00:00
object-rest-binding-pattern.out [parser] Update {Binding,Assignment}RestPattern 2017-07-14 00:10:06 +00:00
overwritten-builtins.js
overwritten-builtins.out Reland "[parser] moved load property position after dot" 2017-07-10 22:17:58 +00:00
paren_in_arg_string.js
paren_in_arg_string.out
README.md [testing] Rename documentation file. 2017-03-31 08:05:15 +00:00
redeclaration1.js
redeclaration1.out
redeclaration2.js
redeclaration2.out
redeclaration3.js
redeclaration3.out
replacement-marker-as-argument.js
replacement-marker-as-argument.out
rest-param-class-setter-strict.js
rest-param-class-setter-strict.out
rest-param-object-setter-sloppy.js
rest-param-object-setter-sloppy.out
rest-param-object-setter-strict.js
rest-param-object-setter-strict.out
simple-throw.js
simple-throw.out
strict-formal-parameters.js
strict-formal-parameters.out
strict-octal-indirect-regexp.js
strict-octal-indirect-regexp.out
strict-octal-number.js
strict-octal-number.out
strict-octal-regexp.js
strict-octal-regexp.out
strict-octal-string.js
strict-octal-string.out
strict-octal-use-strict-after.js
strict-octal-use-strict-after.out
strict-octal-use-strict-before.js
strict-octal-use-strict-before.out
strict-with.js
strict-with.out
super-constructor-extra-statement.js
super-constructor-extra-statement.out
super-constructor.js
super-constructor.out
super-in-function.js
super-in-function.out
testcfg.py [d8] implement console for d8. 2017-04-24 13:23:10 +00:00
tonumber-symbol.js
tonumber-symbol.out
try-catch-finally-no-message.js
try-catch-finally-no-message.out
try-catch-finally-return-in-finally.js
try-catch-finally-return-in-finally.out
try-catch-finally-throw-in-catch-and-finally.js
try-catch-finally-throw-in-catch-and-finally.out
try-catch-finally-throw-in-catch.js
try-catch-finally-throw-in-catch.out
try-catch-finally-throw-in-finally.js
try-catch-finally-throw-in-finally.out
try-catch-lexical-conflict.js
try-catch-lexical-conflict.out
try-catch-variable-conflict.js
try-catch-variable-conflict.out
try-finally-return-in-finally.js
try-finally-return-in-finally.out
try-finally-throw-in-finally.js
try-finally-throw-in-finally.out
try-finally-throw-in-try-and-finally.js
try-finally-throw-in-try-and-finally.out
try-finally-throw-in-try.js
try-finally-throw-in-try.out
undefined-keyed-property.js [Interpreter] Fix expression position on keyed property loads. 2017-07-18 15:32:29 +00:00
undefined-keyed-property.out [Interpreter] Fix expression position on keyed property loads. 2017-07-18 15:32:29 +00:00
unicode-escape-invalid-2.js
unicode-escape-invalid-2.out
unicode-escape-invalid.js
unicode-escape-invalid.out
unicode-escape-undefined.js
unicode-escape-undefined.out
unterminated-arg-list.js
unterminated-arg-list.out
wasm-function-name.js [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-function-name.out [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-module-and-function-name.js [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-module-and-function-name.out [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-module-name.js [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-module-name.out [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-no-name.js [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-no-name.out [wasm] Decode and use module name 2017-06-12 10:58:48 +00:00
wasm-trap.js
wasm-trap.out [wasm] Use spec'ed location format 2017-06-09 15:04:36 +00:00
yield-in-arrow-param.js
yield-in-arrow-param.out
yield-in-generator-param.js
yield-in-generator-param.out

JavaScript tests with expected output

Tests in test/message pass if the output matches the expected output. Message tests are particularly useful when checking for exact error messages.

Tests and their expected output must have the same filename, with the .js and .out extension.

foo.js
foo.out

All tests must end with an exception. The test runner does not handle output from multiple runs, e.g., --stress-opt. Without an exception, the output will be generated several times and the comparison will fail.

You can use a regex in the expected output. Instead of the exact path. use

*%(basename)s:7: SyntaxError: Detected cycle while resolving name 'a'

Empty lines are ignored in the comparison, but whitespaces are not.

Exact details of the test runner are in testcfg.py.