Skip to content
This repository was archived by the owner on Feb 25, 2018. It is now read-only.

Commit d4903e8

Browse files
committed
Add mismatchTolerance, update PhantomCSS.
1 parent 31f12eb commit d4903e8

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

bower.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "grunt-phantomcss",
33
"version": "0.2.3",
4-
"homepage": "https://github.com/chrisgladd/grunt-phantomcss",
4+
"homepage": "https://github.com/anselmh/grunt-phantomcss",
55
"authors": [
66
"Chris Gladd <chris.m.gladd@gmail.com>",
77
"Larry Davis <lazd@lazd.net>",
8-
"Aliaksei Sapach <dreamsonic@tut.by>"
8+
"Aliaksei Sapach <dreamsonic@tut.by>",
9+
"Anselm Hannemann <info@anselm-hannemann.com>"
910
],
10-
"description": "A grunt task for phantomcss",
11+
"description": "A grunt task for phantomcss – this is a fork of the main repository",
1112
"keywords": [
1213
"grunt",
1314
"phantomjs",
@@ -27,6 +28,6 @@
2728
"tests"
2829
],
2930
"dependencies": {
30-
"phantomcss": "f0846511d9e1e55aa160aaab84e2a150bd3a5a41"
31+
"phantomcss": "0.7.1"
3132
}
3233
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,17 @@
3333
"postinstall": "bower install"
3434
},
3535
"devDependencies": {
36-
"grunt-contrib-jshint": "~0.6.0",
37-
"grunt-contrib-clean": "~0.4.0",
38-
"grunt-contrib-nodeunit": "~0.2.0",
36+
"grunt-contrib-jshint": "~0.10.0",
37+
"grunt-contrib-clean": "~0.5.0",
38+
"grunt-contrib-nodeunit": "~0.4.1",
3939
"grunt": "~0.4.5"
4040
},
4141
"dependencies": {
42-
"bower": "~1.3.3",
43-
"temporary": "0.0.7"
42+
"bower": "~1.3.5",
43+
"temporary": "0.0.8"
4444
},
4545
"peerDependencies": {
46-
"phantomjs": "~1.9.2-2",
47-
"grunt": "~0.4.5"
46+
"phantomjs": "~1.9.2-2"
4847
},
4948
"keywords": [
5049
"gruntplugin",

phantomjs/runner.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ phantomcss.init({
3232
screenshotRoot: args.screenshots,
3333
failedComparisonsRoot: args.failures,
3434
libraryRoot: phantomCSSPath, // Give absolute path, otherwise PhantomCSS fails
35+
mismatchTolerance: args.mismatchTolerance,
3536

3637
onFail: function(test) {
3738
sendMessage('onFail', test);

tasks/phantomcss.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = function(grunt) {
2121
screenshots: 'screenshots',
2222
results: 'results',
2323
viewportSize: [1280, 800],
24+
mismatchTolerance: 0.05,
2425
logLevel: 'error'
2526
});
2627

0 commit comments

Comments
 (0)