Andrey Sidorov
f2a118d034
Merge pull request #130 from santigimeno/improve_randr
...
randr: add GetOutputInfo request
2016-10-11 21:17:13 +11:00
Santiago Gimeno
f0b0bac336
test: fix flaky core-KillKlient test
...
Wait for the `CreateNotify` before killing the client, otherwise a
`BadValue` error could be raised.
2016-10-11 12:04:09 +02:00
Santiago Gimeno
e09c8b5429
randr: add GetOutputInfo request
2016-10-11 10:19:30 +02:00
Santiago Gimeno
4f241ba2b3
Cache X11 extensions
2016-10-06 12:11:59 +02:00
plehmkuhl
d327261c74
Adjusted testcase "client-message.js" to match other tests.
2016-02-03 11:42:32 +01:00
plehmkuhl
4fd0385911
Fixed datatype returned by message_type on ClientMessage event.
...
Added Testcase.
2016-02-03 11:08:58 +01:00
Andrey Sidorov
c473fe4f72
fix closing '})'
2015-11-08 16:57:21 +11:00
Andrey Sidorov
21cc95a8bb
add test to verify all ext files are at least parseable
2015-11-08 16:51:34 +11:00
Santiago Gimeno
dbe2d97bee
src: fix some more events parsing
...
- DestroyNotify, UnmapNotify, MapNotify and MapRequest.
- Add some tests.
2015-10-01 11:53:04 +02:00
Santiago Gimeno
3b18e43fe6
src: fix CreateNotify parsing and add new test
...
- The first 4 fields in an event 'CCSL' are already unpacked in
expectReplyHeader. No need to get the L field again: it is already in the
'extra' variable.
2015-10-01 11:35:26 +02:00
Andrey Sidorov
ad59dbea4b
Merge pull request #82 from santigimeno/fix_randr_test
...
test: fix randr.js test
2015-01-21 23:39:25 +11:00
Santiago Gimeno
2e7bf6cb18
test: fix randr.js test
2015-01-21 12:41:19 +01:00
Santiago Gimeno
b27831d1d2
test: add allow-events test
...
- Ported from X Test Suite @ http://cgit.freedesktop.org/xorg/test/xts/
2015-01-21 12:40:31 +01:00
Santiago Gimeno
76ce6c4141
src: ignore invalid mask values
...
- Avoiding a TypeError exception @ packValueMask.
- Added a test.
2015-01-08 13:33:06 +01:00
Tim Roes
2f66f04d9f
feat: add LowerWindow method
2015-01-03 20:41:33 +01:00
Santiago Gimeno
ca5bcb7df4
test: clean configure-request test
2014-12-09 10:34:49 +01:00
Santiago Gimeno
28e9343487
src: fix CreateGC attributes encoding
...
- Every attribute must have 4 byte length.
- Add test.
2014-12-09 10:33:19 +01:00
Santiago Gimeno
e5be17ac46
src: fix CreateWindow attributes encoding
...
- Every attribute must have 4 byte length.
- Add test.
2014-12-09 10:33:19 +01:00
Santiago Gimeno
7c86cedcab
events: fix ConfigureRequest parsing
...
- Add test that would fail without this change.
2014-12-09 10:00:17 +01:00
Andrey Sidorov
bcc4eba348
fix failing test due to window -> wid rename
2014-10-08 15:08:04 +11:00
Andrey Sidorov
6643bd97f7
use wid instead of window for consistency
2014-10-08 14:58:47 +11:00
champii
47b791dc42
coding style
2014-09-23 16:31:08 +02:00
champii
6d6c8d3b9f
Extensions, tests and exemples are now cps-style
2014-09-23 16:09:18 +02:00
champii
4feba92047
fixed PR
2014-09-23 15:41:37 +02:00
champii
d46d43a22e
Trying to fix tests
2014-09-23 15:32:48 +02:00
champii
48f132b3fe
ConfigureWindow, CreateWindow and CreateGC now give good format size to buffer, fixed some tests
2014-09-23 15:32:48 +02:00
Andrey Sidorov
91a2c4a8cc
don't send undefined args for CreateWindow
2014-09-08 12:12:14 +10:00
Santiago Gimeno
3d3bcfa901
Small type and style issues
2014-03-11 18:01:04 +01:00
Santiago Gimeno
b6a76b51d7
Some more test fixes
...
- Fix error.js test.
- Make sure test_runner exits with the correct error code.
- Comment tests not implemented in core-properties.
2014-03-11 17:57:29 +01:00
Santiago Gimeno
b95302ff1a
Add basic RANDR integration test
...
- Some improvements in test-runner.
2014-03-11 15:59:58 +01:00
Andrey Sidorov
75ad329b4f
fix tests
2014-03-08 18:04:28 +11:00
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