fix w3m image test.

This commit is contained in:
Christopher Jeffrey 2015-07-16 20:04:03 -07:00
parent 81082488f9
commit 78fad856b6
2 changed files with 3 additions and 1 deletions

View File

@ -50,6 +50,8 @@ function Image(options) {
OverlayImage.call(this, options);
return this;
}
throw new Error('`itype` must either be `ansi` or `overlay`.');
}
Image.prototype.__proto__ = Box.prototype;

View File

@ -16,7 +16,7 @@ var file = process.argv[2] || __dirname + '/test-image.png';
var image = blessed.image({
parent: screen,
itype: 'w3m',
itype: 'overlay',
left: 'center',
top: 'center',
width: 'shrink',