mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
A few small fixes to the test scripts
This commit is contained in:
parent
f6fd45cc90
commit
3614d14f83
@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"imagemagick": "^0.1.3",
|
"imagemagick": "^0.1.3",
|
||||||
"imagemagick-native": "^1.7.0",
|
"imagemagick-native": "mash/node-imagemagick-native",
|
||||||
"gm": "^1.17.0",
|
"gm": "^1.17.0",
|
||||||
"async": "^0.9.0",
|
"async": "^0.9.0",
|
||||||
"semver": "^4.3.0",
|
"semver": "^4.3.0",
|
||||||
|
@ -3,6 +3,6 @@ if ! type valgrind >/dev/null; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp test/leak/libvips.supp
|
curl -O https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
|
||||||
cd ../../
|
cd ../../
|
||||||
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --suppressions=test/leak/libvips.supp --suppressions=test/leak/sharp.supp --leak-check=full --show-leak-kinds=definite,indirect,possible --num-callers=20 --trace-children=yes npm test
|
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --suppressions=test/leak/libvips.supp --suppressions=test/leak/sharp.supp --leak-check=full --show-leak-kinds=definite,indirect,possible --num-callers=20 --trace-children=yes npm test
|
||||||
|
@ -610,7 +610,7 @@ describe('Input/output', function() {
|
|||||||
.toFormat('png')
|
.toFormat('png')
|
||||||
.toFile(fixtures.path('output.svg.png'), function(err, info) {
|
.toFile(fixtures.path('output.svg.png'), function(err, info) {
|
||||||
if (err) {
|
if (err) {
|
||||||
assert.strictEqual('Input file is of an unsupported image format', err.message);
|
assert.strictEqual(0, err.message.indexOf('Input file is of an unsupported image format'));
|
||||||
} else {
|
} else {
|
||||||
assert.strictEqual(true, info.size > 0);
|
assert.strictEqual(true, info.size > 0);
|
||||||
assert.strictEqual('png', info.format);
|
assert.strictEqual('png', info.format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user