Dactyloidae/js/src/tests
2026-03-11 17:57:51 +00:00
..
ecma [multiple] Update Intl tests. 2023-07-03 15:12:46 +08:00
ecma_2 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
ecma_3 Bug 1317397: Only set lastIndex for global or sticky RegExps in RegExpBuiltinExec per ES2017 2019-02-15 23:39:39 +08:00
ecma_3_1 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
ecma_5 [multiple] Update Intl tests. 2023-07-03 15:12:46 +08:00
ecma_6 Issue #2990 - implement object.GroupBy 2026-03-11 17:57:51 +00:00
ecma_7 Bug 1331092 - Part 2: Implement Async Generator except yield*. 2019-12-18 09:16:52 +08:00
ecma_2017 Issue #2234 - Part 3: Update tests 2023-05-09 11:39:39 +08:00
ecma_2018 Issue #2234 - Part 3: Update tests 2023-05-09 11:39:39 +08:00
ecma_2021/manual Issue #1726 - Add verification test for string.replaceAll() 2021-02-05 07:35:08 +08:00
Intl tzdata: update to 2024a 2024-04-21 07:47:52 +08:00
js1_1 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js1_2 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js1_3 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js1_4 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js1_5 Issue #1656 - Part 7: Nuke vim config lines in JS 2020-09-25 22:04:24 +08:00
js1_6 Issue #1257 - Part 3: Remove/update tests. 2019-11-01 10:25:02 +08:00
js1_7 Issue #1257 - Part 3: Remove/update tests. 2019-11-01 10:25:02 +08:00
js1_8 Issue #1257 - Part 3: Remove/update tests. 2019-11-01 10:25:02 +08:00
js1_8_1 Issue #1257 - Part 3: Remove/update tests. 2019-11-01 10:25:02 +08:00
js1_8_5 Issue #2838 - Update tests 2025-08-08 09:28:58 +08:00
lib Use UTC where appropriate in python files 2019-02-14 14:28:19 +08:00
non262 [multiple] Update Intl tests. 2023-07-03 15:12:46 +08:00
shell Add Atomics.notify instead of Atomics.wake according to revised spec. 2019-06-15 06:27:46 +08:00
style import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
supporting import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
test262 Issue #1918 - m-c 1353690: Properly exclude |await| from consideration as a |let| variable name in async functions, so that a newline between the two separates them into two distinct expressions. 2022-06-22 09:02:40 +08:00
browser.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
compare_bench.py import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
dupl-prop-changes.diff import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
function-arguments-caller-changes.diff import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js-test-driver-begin.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
js-test-driver-end.js import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
jsreftest.html import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
jstests.list [multiple] Update Intl tests. 2023-07-03 15:12:46 +08:00
jstests.py import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
Makefile.in Issue #1656 - Part 7: Nuke vim config lines in JS 2020-09-25 22:04:24 +08:00
moz.build Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
parsemark.py import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
README.txt import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
shell.js Remove SetGCZeal() stub and its callers. 2019-02-14 14:38:14 +08:00
update-test262.sh import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00
user.js Remove telemetry leftovers from JS engine. 2019-02-16 00:27:38 +08:00

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