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

Commit f9c10f8

Browse files
committed
Add copyright notice, update README.
1 parent d4903e8 commit f9c10f8

3 files changed

Lines changed: 46 additions & 12 deletions

File tree

LICENSE-MIT

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Copyright (c) 2013 Chris Gladd
1+
Currently maintained and therefore Copyright (c) 2014
2+
(applies to all commits since 2014-07-01) Anselm Hannemann
3+
4+
----
5+
6+
Original Copyright (c) 2013 Chris Gladd
27

38
Permission is hereby granted, free of charge, to any person
49
obtaining a copy of this software and associated documentation

README.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,32 @@
22

33
> Automate CSS regression testing with PhantomCSS
44
5+
## Notice
6+
7+
**This is a fork of the original (presumably discontinued) repository of [grunt-phantomcss](https://github.com/chrisgladd/grunt-phantomcss). Currently this version here is untagged and unreleased on npm. However, you can install and use this version:**
8+
9+
Add this to your `package.json`:
10+
11+
"grunt-phantomcss": "git://github.com/anselmh/grunt-phantomcss.git",
12+
13+
or, alternatively, type this into your command line interface:
14+
15+
npm i --save-dev git://github.com/anselmh/grunt-phantomcss.git
16+
17+
## CHANGELOG
18+
19+
* Added `mismatchTolerance` tolerance (`mismatchTolerance: 0.0.5` is default) (thx [fidgety](https://github.com/chrisgladd/grunt-phantomcss/pull/17))
20+
* Use PhantomCSS v0.7.1
21+
* Update dependencies
22+
* Remove grunt as peerDependency causing multiple issues with peerPackages
23+
* Fix post-script `bower install`
24+
25+
## TO DO:
26+
27+
* Add timeout as an optional argument (currently can fail on large testing areas with a timeout)
28+
29+
----
30+
531
## Getting Started
632
This plugin requires Grunt `~0.4.1`
733

@@ -29,7 +55,9 @@ grunt.initConfig({
2955
your_target: {
3056
options: {
3157
screenshots: 'test/visual/screenshots/',
32-
results: 'results/visual/'
58+
results: 'results/visual/',
59+
viewportSize: [1280, 800],
60+
mismatchTolerance: 0.05
3361
},
3462
src: [
3563
'test/visual/**/*.js'
@@ -47,25 +75,25 @@ Type: `String|Array`
4775
The test files to run.
4876

4977
#### options.screenshots
50-
Type: `String`
78+
Type: `String`
5179
Default: `'./screenshots'`
5280

5381
The screenshots directory where test fixtures (comparison screenshots) are stored. Baseline screenshots will be stored here on the first run if they're not present.
5482

5583
#### options.results
56-
Type: `String`
84+
Type: `String`
5785
Default: `'./results'`
5886

5987
The directory to store source, diff, and failure screenshots after tests.
6088

6189
#### options.viewportSize
62-
Type: `Array`
90+
Type: `Array`
6391
Default: `[1280, 800]`
6492

65-
The viewport size to test the site in `[width, height]` format. Useful when testing responsive layouts.
93+
The viewport size to test the site in `[width, height]` format. Useful when testing responsive layouts.
6694

6795
#### options.logLevel
68-
Type: `String`
96+
Type: `String`
6997
Default: `error`
7098

7199
The CasperJS log level. See [CasperJS: Logging](http://casperjs.readthedocs.org/en/latest/logging.html) for details.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,27 @@
22
"name": "grunt-phantomcss",
33
"description": "Plugin to do CSS regression testing via PhantomCSS.",
44
"version": "0.2.3",
5-
"homepage": "https://github.com/chrisgladd/grunt-phantomcss",
5+
"homepage": "https://github.com/anselmh/grunt-phantomcss",
66
"author": {
77
"name": "Chris Gladd",
88
"email": "chris.m.gladd@gmail.com"
99
},
1010
"contributors": [
1111
{ "name": "Larry Davis", "email":"lazd@lazd.net", "url":"https://github.com/lazd" },
12-
{ "name": "Aliaksei Sapach", "email":"dreamsonic@tut.by", "url":"https://github.com/asapach" }
12+
{ "name": "Aliaksei Sapach", "email":"dreamsonic@tut.by", "url":"https://github.com/asapach" },
13+
{ "name": "Anselm Hannemann", "email":"info@anselm-hannemann.com", "url":"http://helloanselm.com/" }
1314
],
1415
"repository": {
1516
"type": "git",
16-
"url": "git://github.com/chrisgladd/grunt-phantomcss.git"
17+
"url": "git://github.com/anselmh/grunt-phantomcss.git"
1718
},
1819
"bugs": {
19-
"url": "https://github.com/chrisgladd/grunt-phantomcss/issues"
20+
"url": "https://github.com/anselmh/grunt-phantomcss/issues"
2021
},
2122
"licenses": [
2223
{
2324
"type": "MIT",
24-
"url": "https://github.com/chrisgladd/grunt-phantomcss/blob/master/LICENSE-MIT"
25+
"url": "https://github.com/anselmh/grunt-phantomcss/blob/master/LICENSE-MIT"
2526
}
2627
],
2728
"main": "Gruntfile.js",

0 commit comments

Comments
 (0)