REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 766 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/png-js/test/pixels.spec.js
Text
Base64
const PNGNode = require('../png-node'); const fs = require('fs'); const files = fs.readdirSync('test/images'); async function getPixels(Ctor, fileName) { const image = new Ctor(fs.readFileSync(`test/images/${fileName}`)); return new Promise(resolve => { Ctor === PNGNode ? image.decodePixels(resolve) : resolve(image.decodePixels()); }); } describe('pixels', () => { describe('node', () => { test.each(files)('%s', async fileName => { const pixels = await getPixels(PNGNode, fileName); expect(pixels).toMatchSnapshot(); }); }); describe('browser', () => { test.each(files)('%s', async fileName => { const pixels = await getPixels(PNG, fileName); expect(pixels).toMatchSnapshot(); }); }); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
images
DIR
-
drwxr-xr-x
2026-02-14 19:20:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__snapshots__
DIR
-
drwxr-xr-x
2026-02-14 19:21:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
imgdata.spec.js
570 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
metadata.spec.js
617 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
patch-canvas.js
56 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pixels.spec.js
766 B
lrw-r--r--
2026-02-14 19:19:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).