mirror of
https://github.com/ariya/phantomjs.git
synced 2024-09-11 12:55:33 +03:00
The principal value of this test harness is its support for asynchronous tests -- that is, tests where you have to wait for a callback to happen before you can continue testing. This applies to every test in our testsuite that uses WebPage.open(), and some others as well. With this harness, the test suite is significantly faster and can be made race-free. The API is not exactly the same as W3C testharness.js -- important differences include: test execution is serialized within a file; "file is test" mode has been removed, as we do not need it and it adds significant complexity; several additional assertions have been added; the ability to mark tests as expected to fail, or as to be skipped entirely, has been added. New-style tests can opt out of testharness.js with a "no-harness" directive at the top of the file; this is necessary for a small number of tests (e.g. basics/exit.js) that test functionality the harness reserves for its own use. All existing new-style tests have been converted to testharness.js; some groups of tests have been consolidated into fewer files. The naming convention for tests in regression/ is clarified. Part of issue #13478 (test suite overhaul). |
||
---|---|---|
.. | ||
basics | ||
certs | ||
fixtures | ||
ghostdriver-test | ||
lib | ||
manual/standards | ||
module | ||
node_modules | ||
regression | ||
require | ||
set/690-ttf-crash | ||
standards | ||
webkit-spec | ||
webpage-spec-frames | ||
webpage-spec-renders | ||
www | ||
dummy.js | ||
fs-spec-01.js | ||
fs-spec-02.js | ||
fs-spec-03.js | ||
fs-spec-04.js | ||
module_spec.js | ||
phantomjs.png | ||
run-tests-ghostdriver.sh | ||
run-tests.js | ||
run-tests.py | ||
run-tests.sh | ||
testharness.js | ||
webkit-spec.js | ||
webpage-spec.js | ||
webserver-spec.js | ||
writing-tests.md |