phantomjs/test
Zack Weinberg 4d60e9450d Support Python scripts in test/www/.
Rather than add all the special URLs we'll ever want to run-tests.py,
the embedded HTTP server now supports scripts in test/www/.  If you
try to load http://localhost:9180/path and test/www/path doesn't exist
but test/www/path.py does, then test/www/path.py is loaded as a module.
That module must export one function, handle_request(), which is called
to produce the response.

handle_request() has the same semantics as
SimpleHTTPRequestHandler.send_head().  That is, it takes one argument,
the SimpleHTTPRequestHandler object, conventionally named 'req'.
It should call the send_response(), send_header(), and end_headers()
methods of that object as appropriate.  And it should return a readable
filelike whose contents are taken as the body of the response.

If either module import or handle_request() throws any exception, the
HTTP response will be a 500 Internal Server Error with body provided
by cgitb.

Ongoing work on issue #12439.
2014-09-15 16:21:17 +00:00
..
basics Port the tests for error handling. 2014-09-03 23:15:11 -07: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 Port the test to check for plugin non-existence. 2014-09-14 09:35:41 -05:00
node_modules Add require() tests and comment buggy test in fs-spec-03.js 2012-07-12 23:14:12 -07:00
regression Fix crash on exit if pages have been closed (#12482) 2014-08-20 14:38:45 -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/javascript Support globs in run-tests.py#TESTS. 2014-09-15 16:17:27 +00: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 Support Python scripts in test/www/. 2014-09-15 16:21:17 +00:00
assert.js Speed-up the tests: default auto-exit timeout is set to 1 second. 2014-09-08 08:04:06 -07:00
cjk-text-codecs.js Reenable some more tests. 2014-08-24 20:00:04 -07:00
cookiejar-spec.js Adds support for multiple Cookie Jars. 2014-01-10 16:12:39 -08: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 Fixing up indentation for our Jasmine test specs. 2013-01-17 23:52:47 +00: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 Port the tests of 'system' module. 2014-08-27 22:57:13 -07:00
run-tests.py Support Python scripts in test/www/. 2014-09-15 16:21:17 +00:00
run-tests.sh Add ability to run tests selectively. 2014-08-19 20:24:28 -07:00
webkit-spec.js Port the tests of JavaScript's date parsing. 2014-09-04 08:28:45 -07:00
webpage-spec.js Port the test to check for plugin non-existence. 2014-09-14 09:35:41 -05:00
webserver-spec.js Eliminate console spam during normal test execution. 2014-08-19 20:24:27 -07:00