You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-10Lines changed: 18 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,9 @@ From the command line/terminal run:
33
33
34
34
*`casperjs test demo/testsuite.js`
35
35
36
-
Some useful CasperJS CLI options:
37
-
*`casperjs test --verbose --log-level=debug demo/testsuite.js`
38
-
*`casperjs test demo/testsuite.js --engine=slimerjs`
39
-
*`casperjs test demo/testsuite.js --engine=phantomjs`
36
+
or
37
+
38
+
*`casperjs test demo/testsuite.js --verbose --log-level=debug`
40
39
41
40
### Download
42
41
@@ -55,15 +54,26 @@ Some useful CasperJS CLI options:
55
54
* In the failures folder some images should have been created. The images should show bright pink where the screenshot has visually changed
56
55
* If you want to manually compare the images, go to the screenshot folder to see the original/baseline and latest screenshots
57
56
57
+
### SlimerJS
58
+
59
+
SlimerJS uses the Gecko browser engine rather than Webkit. It currently has better support for Webfonts and can load Flash content if the plugin is installed. If this is of interest to you, please follow the [download and install](http://slimerjs.org/download.html) instructions and ensure SlimerJS is installed globally.
60
+
61
+
*`casperjs test demo/testsuite.js --engine=slimerjs`
62
+
63
+
### PhantomJS 2
64
+
65
+
The latest and greatest version of PhantomJS is not currently supported, as soon as CasperJS has confirmed full support we can look to update PhantomCSS. If (in the future) support has become viable, and you're eager to upgrade, please create and Issue and/or Pull Request.
66
+
58
67
### Options and setup
59
68
69
+
If you are using SlimerJS, you will need to specify absolute paths (see 'demo').
70
+
60
71
```javascript
61
72
phantomcss.init({
62
73
/*
63
74
libraryRoot is relative to this file and must point to your
64
75
phantomcss folder (not lib or node_modules). If you are using
65
-
NPM, this will be './node_modules/phantomcss'. If you are using
66
-
SlimerJS, you will need absolute paths (see 'demo').
76
+
NPM, this will be './node_modules/phantomcss'.
67
77
*/
68
78
libraryRoot:'./modules/PhantomCSS',
69
79
@@ -73,15 +83,13 @@ phantomcss.init({
73
83
By default, failure images are put in the './failures' folder.
74
84
If failedComparisonsRoot is set to false a separate folder will
75
85
not be created but failure images can still be found alongside
76
-
the original and new images. If you are using
77
-
SlimerJS, you will need absolute paths (see 'demo').
86
+
the original and new images.
78
87
*/
79
88
failedComparisonsRoot:'./failures',
80
89
81
90
/*
82
91
Remove results directory tree after run. Use in conjunction
83
-
with failedComparisonsRoot to see failed comparisons. If you are using
84
-
SlimerJS, you will need absolute paths (see 'demo').
92
+
with failedComparisonsRoot to see failed comparisons.
0 commit comments