"git@gitlab.doc.ic.ac.uk:yw21218/metarl.git" did not exist on "5c18be7bda2b42cb470dd406164ac13809530066"
Make asynchronous test configuration explicit
For asynchronous tests, the contract between test file and test runner is implicit: runners are expected to inspect the source code for references to a global `$DONE` identifier. Promote a more explicit contract between test file and test runner by introducing a new frontmatter "tag", `async`. This brings asynchronous test configuration in-line with other configuration mechanisms and also provides a more natural means of test filtering. The modifications to test files was made programatically using the `grep` and `sed` utilities: $ grep "\$DONE" test/ -r --files-with-match --null | \ xargs -0 sed -i 's/^\(flags:\s*\)\[/\1[async, /g' $ grep "\$DONE" test/ -rl --null | \ xargs -0 grep -E '^flags:' --files-without-match --null | \ xargs -0 sed -i 's/^---\*\//flags: [async]\n---*\//'
Showing
- test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-abrupt.js 1 addition, 0 deletions...ise/prototype/then/rxn-handler-fulfilled-return-abrupt.js
- test/built-ins/Promise/prototype/then/rxn-handler-fulfilled-return-normal.js 1 addition, 0 deletions...ise/prototype/then/rxn-handler-fulfilled-return-normal.js
- test/built-ins/Promise/prototype/then/rxn-handler-identity.js 1 addition, 0 deletions.../built-ins/Promise/prototype/then/rxn-handler-identity.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-nonstrict.js 1 addition, 1 deletion...e/prototype/then/rxn-handler-rejected-invoke-nonstrict.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-invoke-strict.js 1 addition, 1 deletion...mise/prototype/then/rxn-handler-rejected-invoke-strict.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-next-abrupt.js 1 addition, 0 deletions...romise/prototype/then/rxn-handler-rejected-next-abrupt.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-next.js 1 addition, 0 deletions...t-ins/Promise/prototype/then/rxn-handler-rejected-next.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-abrupt.js 1 addition, 0 deletions...mise/prototype/then/rxn-handler-rejected-return-abrupt.js
- test/built-ins/Promise/prototype/then/rxn-handler-rejected-return-normal.js 1 addition, 0 deletions...mise/prototype/then/rxn-handler-rejected-return-normal.js
- test/built-ins/Promise/prototype/then/rxn-handler-thrower.js 1 addition, 0 deletionstest/built-ins/Promise/prototype/then/rxn-handler-thrower.js
- test/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A2.2_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A2.2_T2.js
- test/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A2.2_T3.js
- test/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A4.1_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A4.1_T2.js
- test/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A5.1_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A6.1_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A6.2_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A7.1_T1.js
- test/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js 1 addition, 0 deletionstest/built-ins/Promise/race/S25.4.4.3_A7.1_T2.js
Loading
Please register or sign in to comment