tree: 100ccc07fb637b8d801127bb7fdd574f483ffc65 [path history] [tgz]
  1. regress/
  2. arrow-bare-rest-param.js
  3. arrow-bare-rest-param.out
  4. arrow-formal-parameters.js
  5. arrow-formal-parameters.out
  6. arrow-invalid-rest-2.js
  7. arrow-invalid-rest-2.out
  8. arrow-invalid-rest.js
  9. arrow-invalid-rest.out
  10. arrow-missing.js
  11. arrow-missing.out
  12. arrow-param-after-rest-2.js
  13. arrow-param-after-rest-2.out
  14. arrow-param-after-rest.js
  15. arrow-param-after-rest.out
  16. arrow-strict-eval-bare-parameter.js
  17. arrow-strict-eval-bare-parameter.out
  18. arrow-two-rest-params.js
  19. arrow-two-rest-params.out
  20. asm-assignment-undeclared.js
  21. asm-assignment-undeclared.out
  22. asm-function-mismatch-def.js
  23. asm-function-mismatch-def.out
  24. asm-function-mismatch-use.js
  25. asm-function-mismatch-use.out
  26. asm-function-redefined.js
  27. asm-function-redefined.out
  28. asm-function-undefined.js
  29. asm-function-undefined.out
  30. asm-function-variable-collision.js
  31. asm-function-variable-collision.out
  32. asm-import-wrong-annotation.js
  33. asm-import-wrong-annotation.out
  34. asm-import-wrong-object.js
  35. asm-import-wrong-object.out
  36. asm-linking-bogus-heap.js
  37. asm-linking-bogus-heap.out
  38. asm-linking-bogus-stdlib.js
  39. asm-linking-bogus-stdlib.out
  40. asm-linking-missing-heap.js
  41. asm-linking-missing-heap.out
  42. asm-missing-parameter-annotation.js
  43. asm-missing-parameter-annotation.out
  44. asm-missing-return-annotation.js
  45. asm-missing-return-annotation.out
  46. asm-table-mismatch-def.js
  47. asm-table-mismatch-def.out
  48. asm-table-mismatch-use.js
  49. asm-table-mismatch-use.out
  50. asm-table-redefined.js
  51. asm-table-redefined.out
  52. asm-table-undefined.js
  53. asm-table-undefined.out
  54. asm-table-variable-collision.js
  55. asm-table-variable-collision.out
  56. async-arrow-invalid-rest-2.js
  57. async-arrow-invalid-rest-2.out
  58. async-arrow-invalid-rest.js
  59. async-arrow-invalid-rest.out
  60. async-arrow-param-after-rest.js
  61. async-arrow-param-after-rest.out
  62. await-non-async.js
  63. await-non-async.out
  64. call-non-constructable.js
  65. call-non-constructable.out
  66. call-primitive-constructor.js
  67. call-primitive-constructor.out
  68. call-primitive-function.js
  69. call-primitive-function.out
  70. call-undeclared-constructor.js
  71. call-undeclared-constructor.out
  72. call-undeclared-function.js
  73. call-undeclared-function.out
  74. class-constructor-accessor.js
  75. class-constructor-accessor.out
  76. class-constructor-generator.js
  77. class-constructor-generator.out
  78. class-spread-property.js
  79. class-spread-property.out
  80. console.js
  81. console.out
  82. const-decl-no-init-sloppy.out
  83. const-decl-no-init.js
  84. const-decl-no-init.out
  85. const-decl-no-init2.js
  86. const-decl-no-init2.out
  87. default-parameter-tdz-arrow.js
  88. default-parameter-tdz-arrow.out
  89. default-parameter-tdz.js
  90. default-parameter-tdz.out
  91. destructuring-array-non-iterable-number.js
  92. destructuring-array-non-iterable-number.out
  93. destructuring-array-non-iterable-object-literal-complex.js
  94. destructuring-array-non-iterable-object-literal-complex.out
  95. destructuring-array-non-iterable-object-literal.js
  96. destructuring-array-non-iterable-object-literal.out
  97. destructuring-array-non-iterable-object.js
  98. destructuring-array-non-iterable-object.out
  99. destructuring-array-non-iterable-undefined.js
  100. destructuring-array-non-iterable-undefined.out
  101. destructuring-decl-no-init-array.js
  102. destructuring-decl-no-init-array.out
  103. destructuring-decl-no-init-array2.js
  104. destructuring-decl-no-init-array2.out
  105. destructuring-decl-no-init-obj.js
  106. destructuring-decl-no-init-obj.out
  107. destructuring-decl-no-init-obj2.js
  108. destructuring-decl-no-init-obj2.out
  109. destructuring-function-non-iterable.js
  110. destructuring-function-non-iterable.out
  111. destructuring-modify-const.js
  112. destructuring-modify-const.out
  113. destructuring-new-callable-non-iterable.js
  114. destructuring-new-callable-non-iterable.out
  115. destructuring-non-function-non-iterable.js
  116. destructuring-non-function-non-iterable.out
  117. destructuring-undefined-computed-property.js
  118. destructuring-undefined-computed-property.out
  119. destructuring-undefined-number-property.js
  120. destructuring-undefined-number-property.out
  121. destructuring-undefined-string-property.js
  122. destructuring-undefined-string-property.out
  123. export-duplicate-as.js
  124. export-duplicate-as.out
  125. export-duplicate-default.js
  126. export-duplicate-default.out
  127. export-duplicate.js
  128. export-duplicate.out
  129. for-in-let-loop-initializers-strict.js
  130. for-in-let-loop-initializers-strict.out
  131. for-in-loop-initializers-destructuring.js
  132. for-in-loop-initializers-destructuring.out
  133. for-in-loop-initializers-strict.js
  134. for-in-loop-initializers-strict.out
  135. for-loop-invalid-lhs.js
  136. for-loop-invalid-lhs.out
  137. for-of-let-loop-initializers.js
  138. for-of-let-loop-initializers.out
  139. for-of-loop-initializers-sloppy.js
  140. for-of-loop-initializers-sloppy.out
  141. for-of-loop-initializers-strict.js
  142. for-of-loop-initializers-strict.out
  143. for-of-non-iterable.js
  144. for-of-non-iterable.out
  145. for-of-throw-in-body.js
  146. for-of-throw-in-body.out
  147. formal-parameters-bad-rest.js
  148. formal-parameters-bad-rest.out
  149. formal-parameters-strict-body.js
  150. formal-parameters-strict-body.out
  151. formal-parameters-trailing-comma.js
  152. formal-parameters-trailing-comma.out
  153. function-param-after-rest.js
  154. function-param-after-rest.out
  155. function-sent-escaped.js
  156. function-sent-escaped.out
  157. generators-throw1.js
  158. generators-throw1.out
  159. generators-throw2.js
  160. generators-throw2.out
  161. get-iterator-return-non-receiver.js
  162. get-iterator-return-non-receiver.out
  163. get-iterator1.js
  164. get-iterator1.out
  165. import-as-eval.js
  166. import-as-eval.out
  167. import-as-redeclaration.js
  168. import-as-redeclaration.out
  169. import-as-reserved-word.js
  170. import-as-reserved-word.out
  171. import-eval.js
  172. import-eval.out
  173. import-redeclaration.js
  174. import-redeclaration.out
  175. import-reserved-word.js
  176. import-reserved-word.out
  177. instanceof-noncallable.js
  178. instanceof-noncallable.out
  179. instanceof-nonobject.js
  180. instanceof-nonobject.out
  181. invalid-spread-2.js
  182. invalid-spread-2.out
  183. invalid-spread.js
  184. invalid-spread.out
  185. isvar.js
  186. isvar.out
  187. let-lexical-declaration-destructuring-brace-in-single-statement.js
  188. let-lexical-declaration-destructuring-brace-in-single-statement.out
  189. let-lexical-declaration-destructuring-in-single-statement.js
  190. let-lexical-declaration-destructuring-in-single-statement.out
  191. let-lexical-declaration-in-single-statement.js
  192. let-lexical-declaration-in-single-statement.out
  193. let-lexical-name-in-array-prohibited.js
  194. let-lexical-name-in-array-prohibited.out
  195. let-lexical-name-in-object-prohibited.js
  196. let-lexical-name-in-object-prohibited.out
  197. let-lexical-name-prohibited.js
  198. let-lexical-name-prohibited.out
  199. message.gyp
  200. message.isolate
  201. message.status
  202. modules-cycle1.js
  203. modules-cycle1.out
  204. modules-cycle2.js
  205. modules-cycle2.out
  206. modules-cycle3.js
  207. modules-cycle3.out
  208. modules-cycle4.js
  209. modules-cycle4.out
  210. modules-cycle5.js
  211. modules-cycle5.out
  212. modules-cycle6.js
  213. modules-cycle6.out
  214. modules-duplicate-export1.js
  215. modules-duplicate-export1.out
  216. modules-duplicate-export2.js
  217. modules-duplicate-export2.out
  218. modules-duplicate-export3.js
  219. modules-duplicate-export3.out
  220. modules-duplicate-export4.js
  221. modules-duplicate-export4.out
  222. modules-import-redeclare1.js
  223. modules-import-redeclare1.out
  224. modules-import-redeclare2.js
  225. modules-import-redeclare2.out
  226. modules-import-redeclare3.js
  227. modules-import-redeclare3.out
  228. modules-import1.js
  229. modules-import1.out
  230. modules-import2.js
  231. modules-import2.out
  232. modules-import3.js
  233. modules-import3.out
  234. modules-import4.js
  235. modules-import4.out
  236. modules-import5.js
  237. modules-import5.out
  238. modules-import6.js
  239. modules-import6.out
  240. modules-skip-cycle2.js
  241. modules-skip-cycle3.js
  242. modules-skip-cycle5.js
  243. modules-skip-cycle6.js
  244. modules-star-conflict1.js
  245. modules-star-conflict1.out
  246. modules-star-conflict2.js
  247. modules-star-conflict2.out
  248. modules-star-default.js
  249. modules-star-default.out
  250. modules-undefined-export1.js
  251. modules-undefined-export1.out
  252. modules-undefined-export2.js
  253. modules-undefined-export2.out
  254. new-target-assignment.js
  255. new-target-assignment.out
  256. new-target-escaped.js
  257. new-target-escaped.out
  258. new-target-for-loop.js
  259. new-target-for-loop.out
  260. new-target-postfix-op.js
  261. new-target-postfix-op.out
  262. new-target-prefix-op.js
  263. new-target-prefix-op.out
  264. nf-yield-in-generator.js
  265. nf-yield-in-generator.out
  266. nf-yield-strict-in-generator.js
  267. nf-yield-strict-in-generator.out
  268. nf-yield-strict.js
  269. nf-yield-strict.out
  270. nfe-yield-generator.js
  271. nfe-yield-generator.out
  272. nfe-yield-strict.js
  273. nfe-yield-strict.out
  274. non-alphanum.js
  275. non-alphanum.out
  276. non-use-strict-hex-escape.js
  277. non-use-strict-hex-escape.out
  278. non-use-strict-octal-escape.js
  279. non-use-strict-octal-escape.out
  280. non-use-strict-uhex-escape.js
  281. non-use-strict-uhex-escape.out
  282. nonstrict-arguments.js
  283. nonstrict-arguments.out
  284. nonstrict-eval.js
  285. nonstrict-eval.out
  286. nonstrict-with.js
  287. nonstrict-with.out
  288. object-rest-assignment-pattern.js
  289. object-rest-assignment-pattern.out
  290. object-rest-binding-pattern.js
  291. object-rest-binding-pattern.out
  292. overwritten-builtins.js
  293. overwritten-builtins.out
  294. paren_in_arg_string.js
  295. paren_in_arg_string.out
  296. README.md
  297. redeclaration1.js
  298. redeclaration1.out
  299. redeclaration2.js
  300. redeclaration2.out
  301. redeclaration3.js
  302. redeclaration3.out
  303. replacement-marker-as-argument.js
  304. replacement-marker-as-argument.out
  305. rest-param-class-setter-strict.js
  306. rest-param-class-setter-strict.out
  307. rest-param-object-setter-sloppy.js
  308. rest-param-object-setter-sloppy.out
  309. rest-param-object-setter-strict.js
  310. rest-param-object-setter-strict.out
  311. settimeout.js
  312. settimeout.out
  313. simple-throw.js
  314. simple-throw.out
  315. strict-formal-parameters.js
  316. strict-formal-parameters.out
  317. strict-octal-indirect-regexp.js
  318. strict-octal-indirect-regexp.out
  319. strict-octal-number.js
  320. strict-octal-number.out
  321. strict-octal-regexp.js
  322. strict-octal-regexp.out
  323. strict-octal-string.js
  324. strict-octal-string.out
  325. strict-octal-use-strict-after.js
  326. strict-octal-use-strict-after.out
  327. strict-octal-use-strict-before.js
  328. strict-octal-use-strict-before.out
  329. strict-with.js
  330. strict-with.out
  331. super-constructor-extra-statement.js
  332. super-constructor-extra-statement.out
  333. super-constructor.js
  334. super-constructor.out
  335. super-in-function.js
  336. super-in-function.out
  337. testcfg.py
  338. tonumber-symbol.js
  339. tonumber-symbol.out
  340. try-catch-finally-no-message.js
  341. try-catch-finally-no-message.out
  342. try-catch-finally-return-in-finally.js
  343. try-catch-finally-return-in-finally.out
  344. try-catch-finally-throw-in-catch-and-finally.js
  345. try-catch-finally-throw-in-catch-and-finally.out
  346. try-catch-finally-throw-in-catch.js
  347. try-catch-finally-throw-in-catch.out
  348. try-catch-finally-throw-in-finally.js
  349. try-catch-finally-throw-in-finally.out
  350. try-catch-lexical-conflict.js
  351. try-catch-lexical-conflict.out
  352. try-catch-variable-conflict.js
  353. try-catch-variable-conflict.out
  354. try-finally-return-in-finally.js
  355. try-finally-return-in-finally.out
  356. try-finally-throw-in-finally.js
  357. try-finally-throw-in-finally.out
  358. try-finally-throw-in-try-and-finally.js
  359. try-finally-throw-in-try-and-finally.out
  360. try-finally-throw-in-try.js
  361. try-finally-throw-in-try.out
  362. typedarray.js
  363. typedarray.out
  364. undefined-keyed-property.js
  365. undefined-keyed-property.out
  366. unicode-escape-invalid-2.js
  367. unicode-escape-invalid-2.out
  368. unicode-escape-invalid.js
  369. unicode-escape-invalid.out
  370. unicode-escape-undefined.js
  371. unicode-escape-undefined.out
  372. unterminated-arg-list.js
  373. unterminated-arg-list.out
  374. var-conflict-in-with.js
  375. var-conflict-in-with.out
  376. wasm-function-name.js
  377. wasm-function-name.out
  378. wasm-module-and-function-name.js
  379. wasm-module-and-function-name.out
  380. wasm-module-name.js
  381. wasm-module-name.out
  382. wasm-no-name.js
  383. wasm-no-name.out
  384. wasm-trace-memory-interpreted.js
  385. wasm-trace-memory-interpreted.out
  386. wasm-trace-memory.js
  387. wasm-trace-memory.out
  388. wasm-trap.js
  389. wasm-trap.out
  390. yield-in-arrow-param.js
  391. yield-in-arrow-param.out
  392. yield-in-generator-param.js
  393. yield-in-generator-param.out
src/v8/test/message/README.md

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.