Remove logs
This commit is contained in:
@@ -87,21 +87,16 @@ describe('xterm output comparison', function() {
|
|||||||
var i = successful[a];
|
var i = successful[a];
|
||||||
(function(filename){
|
(function(filename){
|
||||||
it(filename.split('/').slice(-1)[0], function () {
|
it(filename.split('/').slice(-1)[0], function () {
|
||||||
console.log(filename);
|
|
||||||
pty_reset();
|
pty_reset();
|
||||||
console.log(1);
|
|
||||||
var in_file = fs.readFileSync(filename, 'utf8');
|
var in_file = fs.readFileSync(filename, 'utf8');
|
||||||
var from_pty = pty_write_read(in_file);
|
var from_pty = pty_write_read(in_file);
|
||||||
console.log(2);
|
|
||||||
// uncomment this to get log from terminal
|
// uncomment this to get log from terminal
|
||||||
//console.log = function(){};
|
//console.log = function(){};
|
||||||
xterm.write(from_pty);
|
xterm.write(from_pty);
|
||||||
var from_emulator = terminalToString(xterm);
|
var from_emulator = terminalToString(xterm);
|
||||||
console.log(3);
|
|
||||||
console.log = CONSOLE_LOG;
|
console.log = CONSOLE_LOG;
|
||||||
var expected = fs.readFileSync(filename.split('.')[0] + '.text', 'utf8');
|
var expected = fs.readFileSync(filename.split('.')[0] + '.text', 'utf8');
|
||||||
if (from_emulator != expected) {
|
if (from_emulator != expected) {
|
||||||
console.log(4);
|
|
||||||
// uncomment to get noisy output
|
// uncomment to get noisy output
|
||||||
//throw new Error(formatError(in_file, from_emulator, expected));
|
//throw new Error(formatError(in_file, from_emulator, expected));
|
||||||
throw new Error('mismatch');
|
throw new Error('mismatch');
|
||||||
|
|||||||
Reference in New Issue
Block a user