242a6a6e73
This patch introduces a goldentest.js. The tests inside the file should rely on "golden" results rather then asserts. For now, goldentest.js allows only image expectations. If the actual result doesn't match the expected result, the two files are created under `test/output` folder: - The '-actual.png' contains the actual test result - The '-diff.png' contains the diff between images
33 lines
822 B
JSON
33 lines
822 B
JSON
{
|
|
"name": "puppeteer",
|
|
"version": "0.0.1",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"test-puppeteer": "jasmine test/test.js",
|
|
"test-golden": "jasmine test/goldentest.js",
|
|
"test-phantom": "python third_party/phantomjs/test/run-tests.py",
|
|
"test": "npm run test-puppeteer && npm run test-golden && npm run test-phantom",
|
|
"install": "node install.js"
|
|
},
|
|
"author": "The Chromium Authors",
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"dependencies": {
|
|
"extract-zip": "^1.6.5",
|
|
"mime": "^1.3.4",
|
|
"progress": "^2.0.0",
|
|
"rimraf": "^2.6.1",
|
|
"ws": "^3.0.0"
|
|
},
|
|
"puppeteer": {
|
|
"chromium_revision": "478524"
|
|
},
|
|
"devDependencies": {
|
|
"deasync": "^0.1.9",
|
|
"jasmine": "^2.6.0",
|
|
"minimist": "^1.2.0",
|
|
"ncp": "^2.0.0",
|
|
"pixelmatch": "^4.0.2"
|
|
}
|
|
}
|