From 91a2c4a8cc42e7f3aba21dee723afa77665426ae Mon Sep 17 00:00:00 2001 From: Andrey Sidorov Date: Mon, 8 Sep 2014 12:12:14 +1000 Subject: [PATCH] don't send undefined args for CreateWindow --- test/errors.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/errors.js b/test/errors.js index 0a3386d..50c1969 100644 --- a/test/errors.js +++ b/test/errors.js @@ -15,7 +15,8 @@ describe('Client', function() { it('should emit error which is instance of Error with sequence number corresponding to source request', function(done) { var times = 0; - display.client.CreateWindow(); // should emit error + //id, parentId, x, y, width, height, borderWidth, depth, _class, visual, values + display.client.CreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {}); var seq = display.client.seq_num; display.client.on('error', function(err) { switch (++ times) { @@ -26,7 +27,7 @@ describe('Client', function() { default: assert.equal(err.constructor, Error); assert.equal(seq, err.seq); - display.client.CreateWindow(); // should emit error + display.client.CreateWindow(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, {}); // should emit error seq = display.client.seq_num; } });