UNPKG

dreemgl

Version:

DreemGL is an open-source multi-screen prototyping framework for mediated environments, with a visual editor and shader styling for webGL and DALi runtimes written in JavaScript. As a toolkit for gpu-accelerated multiscreen development, DreemGL includes

16 lines (13 loc) 556 B
var common = require('../common'); var assert = common.assert; var fake = common.fake.create(); var DelayedStream = common.DelayedStream; var Stream = require('stream').Stream; (function testHandleSourceErrors() { var source = new Stream(); var delayedStream = DelayedStream.create(source, {pauseStream: false}); // We deal with this by attaching a no-op listener to 'error' on the source // when creating a new DelayedStream. This way error events on the source // won't throw. source.emit('error', new Error('something went wrong')); })();