1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 12:55:33 +03:00
phantomjs/test
Zack Weinberg 2121b56d5b Replace assert.js with a new test harness based on W3C testharness.js.
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).
2015-10-20 17:10:46 -04:00
..
basics Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
certs Overhaul run-tests.py. 2015-10-20 17:10:46 -04:00
fixtures fix lack of parse time errors location info 2013-11-24 01:43:10 +02:00
ghostdriver-test Making GhostDriver test "quiet-er" (and parallel) 2014-03-09 01:02:21 +00:00
lib Add a -v/--verbose option to run-tests.{sh,js}. 2014-08-19 20:24:28 -07:00
manual/standards Support globs in run-tests.py#TESTS. 2014-09-15 16:17:27 +00:00
module Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
node_modules Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
regression Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
require Remove CoffeeScript references from unit tests 2014-08-06 15:08:24 +02:00
set/690-ttf-crash Mac OS X: Add a manual test for the crash with TrueType fonts. 2012-12-30 21:17:39 -08:00
standards Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
webkit-spec Restore dirty line logic in RenderInline::destroy. 2012-11-14 11:28:58 -08:00
webpage-spec-frames Define the new page callback for interrupting a long-running JavaScript 2013-11-23 22:09:39 -08:00
webpage-spec-renders Remove GIF format for screen capture export (render). 2014-08-23 09:20:20 -07:00
www Overhaul run-tests.py. 2015-10-20 17:10:46 -04:00
dummy.js Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
fs-spec-01.js Teach File how to change its encoding 2013-04-29 07:00:19 -07:00
fs-spec-02.js Fixing up indentation for our Jasmine test specs. 2013-01-17 23:52:47 +00:00
fs-spec-03.js Fix invalid directory path for Windows. 2014-11-16 17:02:26 -08:00
fs-spec-04.js Fixing up indentation for our Jasmine test specs. 2013-01-17 23:52:47 +00:00
module_spec.js Fix indentation to 4 spaces in new require() tests 2012-07-12 23:14:12 -07:00
phantomjs.png Add test case for WebServerResponse::setEncoding 2012-12-17 19:27:19 -08:00
run-tests-ghostdriver.sh Making GhostDriver test "quiet-er" (and parallel) 2014-03-09 01:02:21 +00:00
run-tests.js Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
run-tests.py Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
run-tests.sh Add ability to run tests selectively. 2014-08-19 20:24:28 -07:00
testharness.js Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00
webkit-spec.js Port the tests of JavaScript's date parsing. 2014-09-04 08:28:45 -07:00
webpage-spec.js response body is only available in onResourceReceived event, 2015-05-31 13:43:43 +03:00
webserver-spec.js Eliminate console spam during normal test execution. 2014-08-19 20:24:27 -07:00
writing-tests.md Replace assert.js with a new test harness based on W3C testharness.js. 2015-10-20 17:10:46 -04:00