mirror of
https://github.com/danbulant/node-x11
synced 2026-06-18 22:21:44 +00:00
Adjusted testcase "client-message.js" to match other tests.
This commit is contained in:
parent
4fd0385911
commit
d327261c74
1 changed files with 2 additions and 9 deletions
|
|
@ -14,22 +14,15 @@ describe('ClientMessage', function() {
|
|||
self.wid = self.X.AllocID();
|
||||
self.X.CreateWindow(self.wid, dpy.screen[0].root, 0, 0, 1, 1); // 1x1 pixel window
|
||||
|
||||
//Ugly but works for now
|
||||
self.X.InternAtom(false, 'TEST_ATOM_1', function(err, atom) {
|
||||
should.not.exist(err);
|
||||
ATOM['TEST_ATOM_1'] = atom;
|
||||
|
||||
self.X.InternAtom(false, 'TEST_ATOM_2', function(err, atom) {
|
||||
should.not.exist(err);
|
||||
ATOM['TEST_ATOM_2'] = atom;
|
||||
done();
|
||||
});
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
client.on('error', function (err) {
|
||||
console.error('Error : ', err);
|
||||
});
|
||||
client.on('error', done);
|
||||
});
|
||||
|
||||
it('should receive client message with format=8', function(done) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue