add widget-nowrap test.

This commit is contained in:
Christopher Jeffrey 2014-04-26 05:14:35 -05:00
parent c0f85b2567
commit 737c88d7e5
1 changed files with 26 additions and 0 deletions

26
test/widget-nowrap.js Normal file
View File

@ -0,0 +1,26 @@
var fs = require('fs')
, blessed = require('../')
, screen;
// {open}xxxx{close} xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx
// xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxx {red-bg}xxxx xxxx xxxx{/red-bg}
screen = blessed.screen({
dump: __dirname + '/logs/nowrap.log'
});
var box = blessed.box({
parent: screen,
width: 60,
wrap: false,
tags: true,
content: fs.readFileSync(__filename, 'utf8')
});
box.focus();
screen.key('q', function() {
return process.exit(0);
});
screen.render();