- Feb 12, 2016
-
-
Mike Pennisi authored
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---*\//'
-
- Feb 12, 2015
-
-
Rick Waldron authored
-
- Dec 07, 2014
-
-
Brian Terlson authored
-
- Nov 10, 2014
-
-
smikes authored
add more tests of Promise.all additional Promise test add tests of Promise.prototype add some tests for Promise.race additional Promise tests add Promise.reject and Promise.resolve tests correct test description rename badly-named files use current license and minor style cleanup correct understanding of undefined as thisArgument incorporate line notes Is this enough to make a constructor in ES6? more accurate use of resolved,fulfilled etc. remove some redundant tests add new tests remove "constant array" unclear language better description Update S25.4.2.1_A3.2_T1.js address dangling () changes per @anba line notes - if GetIterator is abrupt, the Promise.race / Promise.all should reject - if Promise.race is called with nonconforming constructor as 'this', TypeError should be thrown (cannot reject if exeption is thrown from NewPromiseCapability; no promise exists yet...) correct description of "this" testing in callbacks fix whitespace, formatting remove tab add "next-turn" checking to sequencers
-
- Jul 30, 2014
-
-
Brian Terlson authored
-
Brian Terlson authored
This commit normalizes the test case format used across test262. It applies the following transformations: * Convert to YAML for frontmatter * Remove of trailing whitespace * Replace /r/n with /n except in chapters 6 and 7. * Copyright header always uses // comments * new includes attribute replaces $INCLUDE * No implicit assumptions about test environment other than $ERROR. Everything else appears in the include array. This includes "runTestCase" which is now included in a substantial number of tests.
-
- Jul 18, 2014
-
-
Sam Mikes authored
doneprintHandle.js: make $DONE accept any falsy argument as meaning 'pass' PromiseHelper.js: checkSequence: new helper fn for async tests .gitignore: port .hgignore to .gitignore syntax test262.py: support $INCLUDE directive in python test runner S25.4.4.1*: tests to cover Section 25.4.4.1, Promise.all( iterable ) A1.1: Promise.all is callable A1.2: Promise.all expects 1 argument A2.1: Promise.all([]) is a Promise A2.2: Promise.all([]) is resolved immediately A2.3: Promise.all([]) is resolved with a new empty array A3.1: Promise.all expects an iterable argument
-