1
1
mirror of https://github.com/ariya/phantomjs.git synced 2024-09-11 12:55:33 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Marc Epard
4ef5f27600 Test load-images=yes and load-images=no. 2016-05-07 00:50:20 +03:00
Zack Weinberg
3d9a327df3 Tests for child process stdin
To avoid cross-platform issues, these tests spawn platform- and 2/3-agnostic
Python scripts; Python is already required to run the test suite.
2016-02-03 10:18:17 -05:00
Zack Weinberg
ed4c4526db Make paths to PhantomJS and Python interpreters available to tests.
Incidental refactoring of the environment variable setup code in
run-tests.py and testharness.js.
2016-02-03 10:18:17 -05:00
Zack Weinberg
8f7d29b875 Minor fix to testharness.js: renumber an enum to remove a gap. 2016-02-03 10:16:29 -05:00
Zack Weinberg
c5db190f39 Test directory reorganization.
The `certs`, `fixtures`, `node_modules`, and `www` directories, and
`testharness.js`, are moved into a new `lib` directory to reduce
clutter; the long-term plan is that all other subdirectories will
contain tests.  (Right now, we still have `ghostdriver-tests` as an
exception.)  Adjust `writing-tests.md`, `run-tests.py`, `testharness.js`,
and a couple of tests accordingly.

Also fix a bug in `run-tests.py` where ERROR conditions that happened
before the first test were not being reported accurately.
2016-02-03 10:16:03 -05:00
Zack Weinberg
233b22ff2c Remove the old test runner.
Part of issue #13478 (test suite overhaul).
2015-10-20 17:11:18 -04:00
Zack Weinberg
26934f32a9 Add a -v/--verbose option to run-tests.{sh,js}.
The newer ConsoleReporter is very quiet by default, which is nice, but
this provides a way to get something more like the older one-line-per-test
output.

 #12230 (Test suite improvements).
2014-08-19 20:24:28 -07:00
Zack Weinberg
6fb347d296 Fix jasmine.ConsoleReporter.specFailureDetails.
The new Jasmine includes a version of this formerly external add-on, but it
is buggy and doesn't print details of failing tests.

 #12230 (Test suite improvements).
2014-08-19 20:24:27 -07:00
Zack Weinberg
e6b67bddc5 Import Jasmine 1.3.1.
The newer jasmine-console behavior requires minor adjustments to the
 ConsoleReporter we create in run-tests.js.  Also, en passant fix for
 a bug in the final callback: exiting with status equal to the number
 of failed tests does not work, because the _exit() system call takes
 only the low eight bits of the value passed.  If a test run happened
 to have 256 failing tests, the old code would have spuriously exited
 successfully.  Instead, just exit(1) if any tests fail.

 #12230 (Test suite improvements).
2014-08-19 20:24:27 -07:00
Ivan De Marino
77b5de1362 Run PhantomJS's tests as part of TravisCI
Related to #11952.
2014-03-09 01:02:49 +00:00
Juliusz Gonera
945a4c0f8c Add require() tests and comment buggy test in fs-spec-03.js
http://code.google.com/p/phantomjs/issues/detail?id=47
2012-07-12 23:14:12 -07:00
Ivan De Marino
2c4ac33942 Filesystem API: completed the "Tests" API group from CommonJS/Filesystem definition.
* Tests provided in "fs-spec-04.js"
* I also slightly enriched the "jasmine-console.js" reporter to get a bit more info
2011-08-08 23:42:11 +01:00
Ivan De Marino
744663e9a1 Removing "jasmine.css" because we are not using the Jasmine HTML Trivial Reporter anyway. 2011-07-20 22:45:01 +01:00
Ivan De Marino
e5c2240fcb Added Jasmine 1.1.0, a Console Reporter and the first Test Specs for the new Filesystem API. 2011-07-20 20:31:52 +01:00