fix w3m image test.
This commit is contained in:
parent
81082488f9
commit
78fad856b6
|
@ -50,6 +50,8 @@ function Image(options) {
|
||||||
OverlayImage.call(this, options);
|
OverlayImage.call(this, options);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new Error('`itype` must either be `ansi` or `overlay`.');
|
||||||
}
|
}
|
||||||
|
|
||||||
Image.prototype.__proto__ = Box.prototype;
|
Image.prototype.__proto__ = Box.prototype;
|
||||||
|
|
|
@ -16,7 +16,7 @@ var file = process.argv[2] || __dirname + '/test-image.png';
|
||||||
|
|
||||||
var image = blessed.image({
|
var image = blessed.image({
|
||||||
parent: screen,
|
parent: screen,
|
||||||
itype: 'w3m',
|
itype: 'overlay',
|
||||||
left: 'center',
|
left: 'center',
|
||||||
top: 'center',
|
top: 'center',
|
||||||
width: 'shrink',
|
width: 'shrink',
|
||||||
|
|
Loading…
Reference in New Issue