From 816ff6d3c5099d4fc23b55ad546aabba01ac73bf Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Sat, 29 Dec 2012 16:34:56 +0200 Subject: [PATCH] updated testing instructions --- .gitignore | 1 + readme.md | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7ce3c52..227e65e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /tests/cache/ /tests/flashcanvas.html /lib/ +/bin/ /build/ image.jpg /.project diff --git a/readme.md b/readme.md index b484d05..e5f50d9 100644 --- a/readme.md +++ b/readme.md @@ -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 phantomjs. -The other set of tests run Firefox, Chrome and Internet Explorer with webdriver. 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 webdriver. The selenium standalone server (runs on Java) is required for these tests and can be downloaded from here. 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: