mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Make unit tests runnable from command line.
This commit is contained in:
parent
59d9dfc014
commit
1a119bcb08
7 changed files with 440 additions and 0 deletions
7
test/unit/Makefile
Normal file
7
test/unit/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
|||
PROG=java -Xms512m -Xmx1024m -jar ../../external/jsTestDriver/JsTestDriver-1.3.3d.jar --reset --port 4224 --browser firefox --tests all --testOutput ./test_reports/
|
||||
|
||||
test:
|
||||
$(PROG) ; \
|
||||
|
||||
.phony:: test
|
||||
|
8
test/unit/jsTestDriver.conf
Normal file
8
test/unit/jsTestDriver.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
server: http://localhost:4224
|
||||
|
||||
load:
|
||||
- ../../external/jasmine/jasmine.js
|
||||
- ../../external/jasmineAdapter/JasmineAdapter.js
|
||||
- ../../src/obj.js
|
||||
- ../unit/obj_spec.js
|
||||
|
2
test/unit/test_reports/.gitignore
vendored
Normal file
2
test/unit/test_reports/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
TEST*
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue