gecko/js/src/tests
2013-04-30 08:52:43 -04:00
..
ecma Bug 836404 - Provide better timezone support in jstests. r=jwalden 2013-04-03 12:20:02 -07:00
ecma_2 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
ecma_3 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
ecma_3_1
ecma_5 Bug 866700 - Fix typo. r=ptyo to clear up a J orange in a CLOSED TREE 2013-04-29 15:11:37 -07:00
ecma_6
Intl Bug 837957 - Implement ICU dependent functions of Intl.Collator, Intl.NumberFormat, Intl.DateTimeFormat (tests). r=terrence 2013-03-21 14:32:43 -07:00
js1_1
js1_2
js1_3
js1_4
js1_5 Bug 861605 - Make the arguments to Window.alert, Window.confirm optional. r=Ms2ger 2013-04-29 08:32:01 -04:00
js1_6 Bug 858381 - Implement non-writable array lengths, and add a boatload of tests. r=jorendorff and r=bhackett for the major parts of this, r=jandem for the methodjit changes, r=jimb on a debugger test change, r=nmatsakis for the parallel test. (More details available in the bug, where individual components of the fix were separately reviewed.) 2013-03-19 17:12:06 -07:00
js1_7 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
js1_8 Bug 864694 - Remove the string "Assertion failure:" from jsreftest summaries to avoid TBPL false positives; r=terrence 2013-04-24 09:52:04 +01:00
js1_8_1 Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
js1_8_5 Bug 789593 - Clone typed arrays by cloning their buffers and only saving construction parameters. r=jorendorff, bent 2013-02-22 13:43:28 -08:00
lib Bug 866030 - Error "_init__() takes exactly 4 arguments" running JS test harness for opt build r=terrence 2013-04-26 18:50:18 +01:00
test402 Bug 866369 - Test case for jstests/test402. r=jwalden 2013-04-30 08:52:43 -04:00
browser.js Bug 837950 - Enhance jstests framework to support Test402 tests. r=terrence 2013-04-01 11:33:21 -07:00
compare_bench.py
js-test-driver-begin.js
js-test-driver-end.js
jsreftest.html
jstests.list Bug 853702 - ECMA-402 test ch09/9.2/9.2.8_4.js failing. r=Waldo 2013-04-29 08:31:15 -04:00
jstests.py
Makefile.in Bug 837950 - Enhance jstests framework to support Test402 tests. r=terrence 2013-04-01 11:33:21 -07:00
most.tests
moz.build Bug 855465 - Add emacs python mode comments to moz.build files; r=gps 2013-04-01 11:36:59 -07:00
narcissus-failures.txt
narcissus.list
narcissus.README
parsemark.py
performance.tests
README.txt Bug 837950 - Enhance jstests framework to support Test402 tests. r=terrence 2013-04-01 11:33:21 -07:00
shell.js Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
slow-n.tests
slow-narcissus.txt
spidermonkey-gc.tests
spidermonkey-n.tests
update-test402.sh Bug 837950 - Script to import ECMA-402 conformance tests into the Mozilla tree. r=ted 2013-04-07 16:53:25 -04:00
user.js Back out 80163a75cca5 (bug 865059) for talos and android jsreftest bustage 2013-04-29 15:12:09 -07: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, jsref.js, template.js, user.js, js-test-driver-begin.js, or
        js-test-driver-end.js. </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://mxr.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