mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
updated testing instructions
This commit is contained in:
parent
5f1fedf8f0
commit
816ff6d3c5
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@
|
||||
/tests/cache/
|
||||
/tests/flashcanvas.html
|
||||
/lib/
|
||||
/bin/
|
||||
/build/
|
||||
image.jpg
|
||||
/.project
|
||||
|
@ -62,7 +62,11 @@ Skip lint and tests and simply build from source:
|
||||
|
||||
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>.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
If you didn't download `html2canvas` from `npm`, start by downloading the dependencies:
|
||||
|
||||
$ npm update
|
||||
|
||||
Run qunit tests:
|
||||
|
||||
@ -70,6 +74,7 @@ Run qunit tests:
|
||||
|
||||
Run webdriver tests:
|
||||
|
||||
$ java -jar /path/to/selenium-server-standalone-2.xx.x.jar
|
||||
$ grunt webdriver
|
||||
|
||||
Commiting improvements in baseline values:
|
||||
|
Loading…
Reference in New Issue
Block a user