cd74dfa477
The JS starts a web server and then uses puppeteer to load the html page. The page will load the compiled JS+WASM to run the GMs, calculate the md5 hash of the pixels using the exact same algorithm as DM and then get those encoded as a PNG. The HTML then makes a post request with that image data (assuming it's not an image we have seen before) and keeps all the test results in a simple JSON array. The JSON array will be read in by a task driver in a followup CL. Bug: skia:10812 Change-Id: I90e8ed42bd96ae11fa75ce84ef2ee1a97ab93d5f Reviewed-on: https://skia-review.googlesource.com/c/skia/+/328378 Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
20 lines
416 B
JSON
20 lines
416 B
JSON
{
|
|
"name": "run-wasm-gm-tests",
|
|
"version": "0.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"body-parser": "^1.19.0",
|
|
"command-line-args": "^5.0.2",
|
|
"command-line-usage": "^5.0.3",
|
|
"express": "^4.16.3",
|
|
"puppeteer": "^3.0.4"
|
|
},
|
|
"devDependencies": {},
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"author": "",
|
|
"license": "ISC"
|
|
}
|