mirror of
https://github.com/danbulant/node-x11
synced 2026-07-05 11:10:58 +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.wid = self.X.AllocID();
|
||||||
self.X.CreateWindow(self.wid, dpy.screen[0].root, 0, 0, 1, 1); // 1x1 pixel window
|
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) {
|
self.X.InternAtom(false, 'TEST_ATOM_1', function(err, atom) {
|
||||||
should.not.exist(err);
|
should.not.exist(err);
|
||||||
ATOM['TEST_ATOM_1'] = atom;
|
ATOM['TEST_ATOM_1'] = atom;
|
||||||
|
|
||||||
self.X.InternAtom(false, 'TEST_ATOM_2', function(err, atom) {
|
done();
|
||||||
should.not.exist(err);
|
|
||||||
ATOM['TEST_ATOM_2'] = atom;
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('error', function (err) {
|
client.on('error', done);
|
||||||
console.error('Error : ', err);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should receive client message with format=8', function(done) {
|
it('should receive client message with format=8', function(done) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue