spec: process.stdout.write
This commit is contained in:
parent
205b2455f2
commit
d0587a9c52
2 changed files with 16 additions and 6 deletions
|
@ -190,17 +190,24 @@ describe('node feature', function() {
|
||||||
return assert.equal(Buffer.byteLength(p.innerText), 13);
|
return assert.equal(Buffer.byteLength(p.innerText), 13);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('process.stdout', function() {
|
describe('process.stdout', function() {
|
||||||
it('should not throw exception', function() {
|
it('should not throw exception', function() {
|
||||||
return process.stdout;
|
process.stdout;
|
||||||
});
|
});
|
||||||
return xit('should have isTTY defined', function() {
|
|
||||||
return assert.equal(typeof process.stdout.isTTY, 'boolean');
|
it('should not throw exception when calling write()', function() {
|
||||||
|
process.stdout.write('test');
|
||||||
|
});
|
||||||
|
|
||||||
|
xit('should have isTTY defined', function() {
|
||||||
|
assert.equal(typeof process.stdout.isTTY, 'boolean');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return describe('vm.createContext', function() {
|
|
||||||
return it('should not crash', function() {
|
describe('vm.createContext', function() {
|
||||||
return require('vm').runInNewContext('');
|
it('should not crash', function() {
|
||||||
|
require('vm').runInNewContext('');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -28,6 +28,9 @@ app.commandLine.appendSwitch('disable-renderer-backgrounding');
|
||||||
// sure we can reproduce it in renderer process.
|
// sure we can reproduce it in renderer process.
|
||||||
process.stdout;
|
process.stdout;
|
||||||
|
|
||||||
|
// Access console to reproduce #3482.
|
||||||
|
console;
|
||||||
|
|
||||||
ipcMain.on('message', function(event, arg) {
|
ipcMain.on('message', function(event, arg) {
|
||||||
event.sender.send('message', arg);
|
event.sender.send('message', arg);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue