updated testing instructions

This commit is contained in:
Niklas von Hertzen 2012-12-29 16:34:56 +02:00
parent 5f1fedf8f0
commit 816ff6d3c5
2 changed files with 7 additions and 1 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
/tests/cache/
/tests/flashcanvas.html
/lib/
/bin/
/build/
image.jpg
/.project

View File

@ -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: