Commit graph

6 commits

Author SHA1 Message Date
Antti Korpi
ed27aa84ff Fix 'root' deprecation warning
This would previously be printed in part of the test log:

    (node:1628) [DEP0016] DeprecationWarning: 'root' is deprecated, use 'global'

Apparently, the global object was once called root, and this assignment
didn't have a `var`, so it was actually setting the global object.

I do wonder why that didn't break anything, but this is clearly what was
intended.
2018-01-23 22:35:49 +01: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
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
Andrey Sidorov
6d565ec0e9 debug travis error with killKlient 2012-07-16 14:34:54 +10:00
Andrey Sidorov
ca5efc1941 KillKlient and ForceScreenSaver requests 2012-06-01 11:57:20 +10:00