From 4bb2cfc78052005e4cc81b08830863bec282a2d6 Mon Sep 17 00:00:00 2001 From: filtercake Date: Wed, 16 Apr 2014 23:14:39 +0200 Subject: [PATCH] first green test with phantomcss. #1 --- package.json | 10 ++- screenshots/001-header-title_0.diff.png | Bin 0 -> 2519 bytes screenshots/001-header-title_0.png | Bin 0 -> 2519 bytes test/visual/README.md | 1 + test/visual/testsuite.js | 111 ++++++++++++++++++++++++ 5 files changed, 120 insertions(+), 2 deletions(-) create mode 100644 screenshots/001-header-title_0.diff.png create mode 100644 screenshots/001-header-title_0.png create mode 100644 test/visual/README.md create mode 100755 test/visual/testsuite.js diff --git a/package.json b/package.json index b07c889fa..093ae4b7d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,9 @@ { "name": "laverna", "version": "0.5.0", - "dependencies": {}, + "dependencies": { + "phantomcss": "~0.5.0" + }, "devDependencies": { "grunt": "~0.4.1", "grunt-contrib-copy": "~0.4.0", @@ -28,7 +30,11 @@ "jshint-stylish": "~0.1.3", "grunt-contrib-less": "~0.9.0", "grunt-manifest": "~0.4.0", - "grunt-string-replace": "~0.2.7" + "grunt-string-replace": "~0.2.7", + "phantomjs": "~1.9.7-3", + "grunt-phantomcss": "~0.2.3", + "phantomcss": "~0.5.0", + "casperjs": "~1.1.0-beta3" }, "engines": { "node": ">=0.8.0" diff --git a/screenshots/001-header-title_0.diff.png b/screenshots/001-header-title_0.diff.png new file mode 100644 index 0000000000000000000000000000000000000000..c0bf6ae49fcb2e679bc65fbda102871ac387c7f8 GIT binary patch literal 2519 zcmb7GcU05K77k59@5L-qBm%Ce6xl$i%SI%)2I&L|AWfvVAcP`8Sqw-CNJ$_@%F0rf zDj*0!<^WfSL63p8IoBQsHvT9}v?COZ1gP&l@GTT>jg5jpL}dOmc_7phMQ|2}M*Zp- zTk@rZZF>!`^4z>K?1^kZsh^=d5vh1qMzJh3uQv4l3`)j8x6hB^ezU~m=6t4$|Dj-p z?%c~FBRQF7T)<=qO5@$KPSEK)1#JeWQ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