Commit graph

95 commits

Author SHA1 Message Date
Santiago Gimeno
53e5260c92 Improve change-property test
- So it also tests PropertyChange event notification
2013-11-05 16:02:01 +01:00
Santiago Gimeno
d571226c0b Add ChangeProperty test 2013-11-04 16:30:43 +01:00
Santiago Gimeno
951564b0d1 Fix GetAtomName
- We were not catching the atoms.
- We were leaking the Client.pending_atoms object.
- Fix test so it does what it was supposed to do.
2013-10-28 16:55:08 +01:00
Santiago Gimeno
c1efb0c840 Cache atoms to avoid redundant requests
- Once cached we really don't need to send InternAtom and AtonName requests, so
  we bypass them.
- Add atom_names property to XClient: it's basically the atoms object property
  reversed. It'll be used to cache the atom names.
- Add some tests.
- Issue #22.
2013-02-28 14:43:26 +01:00
Santiago Gimeno
243651b4d8 Add ConfigureWindow core request
- Update requests based on ConfigureWindow to use the new implementation.
- Add sibling field in valueMask.ConfigureWindow.
- Add new tests.
2013-02-22 10:32:49 +01:00
Andrey Sidorov
3f064b218e get rid of lib/x11 nested subdirectory, lib/x11 -> lib 2013-02-19 16:23:53 +11:00
Santiago Gimeno
4508f9e93d Change createClient signature
- The new signature is:

  createClient(options, initCB), where
     - options is an optional object that defines different parameters such as
               display, etc.
     - initCB is an optional callback with the signature: function(err, display)
- The initCB is going to be called with an error ONLY if the connection to the X
  server fails. Further errors in the server connection will be 'emitted'.
- Update tests and test-runner.js accordingly.
- Update README.
2012-12-19 09:34:19 +01:00
Santiago Gimeno
9b8cef815b A couple of fixes in xtest extension
- Return directly in case of error retrieving the extension.
- QueryVersion should be GetVersion and fix its format.
- Add a test for GetVersion.
- Modify test-runner.js so it uses async library to add dynamically the test
  files to be used.
2012-11-26 16:51:56 +01:00
Santiago Gimeno
e6796ab192 Only execute dpms test when we can
- Add test-runner.js to be able to execute the dpms when these
  conditions are complied:
     1 - DPMS extension is supported.
     2 - DPMS version is 1.1.
     3 - DPMS is capable.
2012-11-25 19:35:07 +01:00
Santiago Gimeno
c0dccec8bc Add DPMS extension
- Implemented all requests defined in:
  http://www.x.org/releases/X11R7.6/doc/xextproto/dpms.pdf
- Tests added.
2012-11-23 14:44:25 +01:00
Andrey Sidorov
eeba3b1796 inherit errors from Error 2012-07-17 14:47:17 +10:00
Andrey Sidorov
f3681b9aa2 ping() and close() for connection 2012-07-16 19:48:03 +10:00
Andrey Sidorov
6d565ec0e9 debug travis error with killKlient 2012-07-16 14:34:54 +10:00
Andrey Sidorov
2decda57fd handle sequence overflow (more than 65535 requests in one connection) 2012-07-16 14:18:52 +10:00
Andrey Sidorov
3b0a267af8 version bump, sinonjs dropped 2012-06-13 15:34:07 +10:00
Andrey Sidorov
8af6ab6465 tests for Get,Change,DeleteProperty(ies) 2012-06-13 15:15:18 +10:00
Andrey Sidorov
255081192e assertion fixed 2012-06-08 17:07:01 +10:00
Andrey Sidorov
e631e6fac6 CreateWindow test 2012-06-01 18:17:55 +10:00
Andrey Sidorov
ca5efc1941 KillKlient and ForceScreenSaver requests 2012-06-01 11:57:20 +10:00
Andrey Sidorov
2834543b41 connect using idcorrect DISPLAY 2012-05-31 23:59:34 +10:00
Andrey Sidorov
bdaaf7d729 simple test to trigger travis 2012-05-31 13:46:23 +10:00
Andrey Sidorov
01b6d9778c simple test to trigger travis 2012-05-31 13:35:24 +10:00
Andrey Sidorov
0fd0e4485a first integration test 2012-05-31 12:53:45 +10:00
Andrey Sidorov
b6a0ceff7f cleanup before addint travis & mocha testing 2012-05-31 12:31:49 +10:00
Andrey Sidorov
f40eb4e3d2 XC-MISC extension 2012-05-31 11:06:46 +10:00
Andrey Sidorov
b0931f1feb SHAPE extension 2012-05-31 11:05:51 +10:00
Andrey Sidorov
31194398bc DAMAGE and Composite extensions 2012-05-29 09:56:40 +10:00
Andrey Sidorov
65dd846cb8 cleanups/renames 2012-04-11 16:53:33 +10:00
Andrey Sidorov
4a8202fa49 new argument depth in CreateWindow 2012-04-11 16:46:39 +10:00
Andrey Sidorov
29a04525af new argument depth in CreateWindow 2012-04-11 16:43:13 +10:00
Andrey Sidorov
779da87017 fixes for err in callback; terminate om end 2012-04-11 15:58:50 +10:00
Andrey Sidorov
de3ad6be9c move benchmarks to separate folder 2012-04-11 11:31:06 +10:00
Andrey Sidorov
3cb9e2a85f se render with gradients 2012-03-20 08:36:06 +11:00
Andrey Sidorov
16a464fc26 initial hextile support 2012-02-28 17:37:26 +11:00
Andrey Sidorov
ec330996ce querytree example 2012-02-28 17:19:44 +11:00
Andrey Sidorov
f8406e4da9 missing files added 2012-01-18 16:55:17 +11:00
Andrey Sidorov
20c969d9f7 python-xlib link 2011-12-31 09:02:35 +11:00
sidorares
d6bc4d5c32 BigReq should work now 2011-09-09 11:30:18 +10:00
Andrey Sidorov
f41ec2f635 bigreq+putimage test 2011-09-09 10:10:25 +10:00
sidorares
51a9febab2 Merge branch 'master' of https://github.com/sidorares/node-x11 2011-09-08 12:39:33 +10:00
sidorares
7158b5c59f XTEST FakeInput request 2011-09-08 12:38:46 +10:00
Andrey Sidorov
688aea720a Edited test/warppointer.js via GitHub 2011-09-07 13:19:11 +10:00
sidorares
5e999c3446 WarpPointer request 2011-09-07 13:06:09 +10:00
Andrey Sidorov
a40ba7d874 initial SendEvent implementation 2011-09-07 09:50:19 +10:00
sidorares
0a09793726 require(extension) 2011-09-02 11:52:29 +10:00
Andrey Sidorov
1bbc9dbe88 ininial extantions framework, rendar extension, render example 2011-09-02 10:16:30 +10:00
sidorares
7ccc7f45ea XRENDER example added 2011-09-01 10:53:26 +10:00
sidorares
b02b021d8e fix (inxtorect string + int concatenation instead of addition) 2011-08-31 11:40:37 +10:00
sidorares
c1ee1fea65 GetKeyboardMapping fix + test 2011-08-30 15:16:07 +10:00
sidorares
0b00c965fd initial PictureFilter support 2011-08-08 17:31:55 +10:00