mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-10 07:44:25 +00:00
c66ae7b2e4
Launch an Xspice and run: echo -ne "\033]844;127.0.0.1;9876\007" This will launch a SPiCE client connecting to 127.0.0.1:9876. Still need to add all the security stuff and generally be more defensive in the implementation.
32 lines
565 B
JavaScript
32 lines
565 B
JavaScript
suite('DisplayProcess', function() {
|
|
var sut;
|
|
|
|
setup(function(){
|
|
wdi.Debug.debug = false; //disable debugging, it slows tests
|
|
});
|
|
|
|
suite('#processPacket()', function() {
|
|
setup(function() {
|
|
|
|
|
|
|
|
wdi.ExecutionControl.sync = true;
|
|
});
|
|
|
|
test('displayRouter packetProcess should execute the correct route', sinon.test(function() {
|
|
var executed = false;
|
|
sut = new wdi.DisplayRouter({
|
|
routeList: {
|
|
45: function() {
|
|
executed = true;
|
|
}
|
|
}
|
|
});
|
|
|
|
sut.processPacket({messageType:45});
|
|
assert.isTrue(executed);
|
|
}));
|
|
|
|
});
|
|
});
|