Mypal/js/src/tests
Fedor fb349affec Update TZ data to 2019c. 2019-12-25 15:42:45 +03:00
..
Intl Update TZ data to 2019c. 2019-12-25 15:42:45 +03:00
ecma ooops, some files where missed 2019-03-12 18:31:25 +03:00
ecma_2 ooops, some files where missed 2019-03-12 18:31:25 +03:00
ecma_3 ooops, some files where missed 2019-03-12 18:31:25 +03:00
ecma_3_1 ooops, some files where missed 2019-03-12 18:31:25 +03:00
ecma_5 ooops, some files where missed 2019-03-12 18:31:25 +03:00
ecma_6 1357483 - Stop changing the end position of parenthesized expression ParseNodes. 2019-09-05 20:06:47 +03:00
ecma_7 1315815 - Don't treat async or await as a keyword when they contain escapes. 2019-09-05 20:04:59 +03:00
ecma_2017 1353691 - Report SyntaxError when arrow function has await-identifier... 2019-09-05 20:07:21 +03:00
js1_1 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_2 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_3 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_4 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_5 Update js parser 2019-05-20 09:02:17 +03:00
js1_6 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_7 Update js parser 2019-05-20 09:02:17 +03:00
js1_8 1317374 - Don't do Annex B lexical function behavior when redeclaring a parameter name. 2019-09-05 20:05:35 +03:00
js1_8_1 ooops, some files where missed 2019-03-12 18:31:25 +03:00
js1_8_5 1339395 - Implement Object Rest/Spread Properties proposal. 2019-09-05 20:07:15 +03:00
lib basic source 2019-03-11 13:26:37 +03:00
shell Rewrite atomization 2019-07-08 13:08:56 +03:00
style basic source 2019-03-11 13:26:37 +03:00
supporting ooops, some files where missed 2019-03-12 18:31:25 +03:00
test262 1175823 - Implement [[DefineOwnProperty]] for mapped arguments object. 2019-09-05 20:05:50 +03:00
Makefile.in basic source 2019-03-11 13:26:37 +03:00
README.txt basic source 2019-03-11 13:26:37 +03:00
browser.js basic source 2019-03-11 13:26:37 +03:00
compare_bench.py basic source 2019-03-11 13:26:37 +03:00
dupl-prop-changes.diff basic source 2019-03-11 13:26:37 +03:00
function-arguments-caller-changes.diff basic source 2019-03-11 13:26:37 +03:00
js-test-driver-begin.js basic source 2019-03-11 13:26:37 +03:00
js-test-driver-end.js basic source 2019-03-11 13:26:37 +03:00
jsreftest.html basic source 2019-03-11 13:26:37 +03:00
jstests.list basic source 2019-03-11 13:26:37 +03:00
jstests.py basic source 2019-03-11 13:26:37 +03:00
moz.build basic source 2019-03-11 13:26:37 +03:00
parsemark.py basic source 2019-03-11 13:26:37 +03:00
shell.js basic source 2019-03-11 13:26:37 +03:00
update-test262.sh basic source 2019-03-11 13:26:37 +03:00
user.js basic source 2019-03-11 13:26:37 +03:00

README.txt

JS Test Suite Readme
====================

The JS test suite is a fairly extensive collection of correctness and regression
tests for the Spidermonkey engine. Two harnesses run these tests: the shell test
harness in this directory and the "reftest" harness built into the browser, used
by Tinderbox. The browser reftests require additional manifest files; these are
generated automatically by the build phase 'package-tests' using the
'--make-manifests' option to jstests.py.

Creating a test
---------------
For general information, see
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Creating_JavaScript_tests

Adding a test
-------------
    Drop it in an appropriate directory under the tests directory.

        <fineprint> Some names are forbidden. Do not name your test browser.js,
        shell.js, template.js, user.js, js-test-driver-begin.js, or
        js-test-driver-end.js, or any of the names of the files in supporting/.
        </fineprint>

Adjusting when and how a test runs
----------------------------------
    Put a comment at the top of the header matching the format:
        // |reftest| <failure-type> -- <comment>

    Where <failure-type> is a standard reftest <failure-type> string, as documented by:
        http://dxr.mozilla.org/mozilla-central/source/layout/tools/reftest/README.txt

    Example:
        // |reftest| skip-if(!xulRuntime.shell) -- does not always dismiss alert

        <fineprint> Either // or /* */ style comments may be used. The entire
        comment must appear in the first 512 bytes of the file. The control
        string must be in its own comment block. </fineprint>

    When adding such comments to individual files is not feasible (e.g., for
    imported tests), reftest manifest entries can be added to jstests.list
    instead. Combining in-file comments with entries in this manifest file for
    the same files is not supported (the one from the manifest file will be
    used). Only the following two forms are supported:
        <failure-type> include <relative_path>
        <failure-type> script <relative_path>
    The <type> "include" indicates that <failure-type> should apply to all test
    cases within a directory. A statement for a nested directory or script
    overrides one for an enclosing directory.

Running tests
-------------
See
https://developer.mozilla.org/en-US/docs/SpiderMonkey/Running_Automated_JavaScript_Tests