Skip to content

Commit 816ff6d

Browse files
committed
updated testing instructions
1 parent 5f1fedf commit 816ff6d

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/tests/cache/
55
/tests/flashcanvas.html
66
/lib/
7+
/bin/
78
/build/
89
image.jpg
910
/.project

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,19 @@ Skip lint and tests and simply build from source:
6262

6363
The library has two sets of tests. The first set is a number of qunit tests that check that different values parsed by browsers are correctly converted in html2canvas. To run these tests with grunt you'll need <a href="http://phantomjs.org/">phantomjs</a>.
6464

65-
The other set of tests run Firefox, Chrome and Internet Explorer with <a href="https://github.com/niklasvh/webdriver.js">webdriver</a>. They capture an actual screenshot from the test pages and compare the image to the screenshot created by html2canvas and calculate the percentage differences. These tests generally aren't expected to provide 100% matches, but while commiting changes, these should generally not go decrease from the baseline values.
65+
The other set of tests run Firefox, Chrome and Internet Explorer with <a href="https://github.com/niklasvh/webdriver.js">webdriver</a>. The selenium standalone server (runs on Java) is required for these tests and can be downloaded from <a href="http://code.google.com/p/selenium/downloads/list">here</a>. They capture an actual screenshot from the test pages and compare the image to the screenshot created by html2canvas and calculate the percentage differences. These tests generally aren't expected to provide 100% matches, but while commiting changes, these should generally not go decrease from the baseline values.
66+
67+
If you didn't download `html2canvas` from `npm`, start by downloading the dependencies:
68+
69+
$ npm update
6670

6771
Run qunit tests:
6872

6973
$ grunt test
7074

7175
Run webdriver tests:
7276

77+
$ java -jar /path/to/selenium-server-standalone-2.xx.x.jar
7378
$ grunt webdriver
7479

7580
Commiting improvements in baseline values:

0 commit comments

Comments
 (0)