Ben Noordhuis
12d0f0bd3a
lib, src: remove errno global
...
Remove the errno global. It's a property on the process object now.
Fixes #3095 .
2013-02-28 23:11:47 +01:00
Timothy J Fontaine
17a812618d
test: optionally set common.PORT via env variable
2013-02-26 08:07:46 -08:00
Ben Noordhuis
d5a5ae3c11
test: fix common.mustCall
...
Don't run the 'has function been called?' checks if the test is exiting
with an error because a failed check will mask the real exception.
v0.8 doesn't have the _fatalException machinery in src/node.js and
src/node.cc so it doesn't have this issue.
2013-02-11 13:37:33 +01:00
isaacs
3383d77c61
test: child process { stdio:'inherit' }
2013-01-11 09:14:09 -08:00
Scott Blomquist
f657ce685d
windows: add tracing with performance counters
...
Patch by Henry Rawas and Scott Blomquist.
2012-11-21 01:21:53 +01:00
Ben Noordhuis
d0e6c3f5a6
test: add common.mustCall function
...
Verifies that the callback gets invoked <n> times during the lifetime of the
test script.
2012-09-22 03:48:58 +02:00
Timothy J Fontaine
382f22f229
timers: implement setImmediate
2012-08-12 00:07:22 +02:00
Mikael Bourges-Sevenier
67fc1dafd0
typed arrays: add Uint8ClampedArray
2012-03-28 22:57:15 +02:00
Your Name
fb47a337ba
test: changed instances of == to ===
2012-03-19 14:24:46 +01:00
isaacs
0cdf85e28d
Lint all the JavaScripts.
2012-02-18 15:34:57 -08:00
Bert Belder
892056bf97
tests: fix more lint issues
2012-01-17 20:16:49 +01:00
Igor Zinkovsky
0a5708c3e9
fix test-http-curl-chunk-problem.js and test-pipe-file-to-http.js on windows
2011-10-25 14:10:12 -07:00
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
...
This reverts commit b70fed48a7
.
2011-10-21 13:00:37 -07:00
isaacs
b70fed48a7
Don't use a separate context for the repl.
...
Fix #1484
Fix #1834
Fix #1482
Fix #771
It's been a while now, and we've seen how this separate context thing
works. It constantly confuses people, and no one actually uses '.clear'
anyway, so the benefit of that feature does not justify the constant
WTFery.
This makes repl.context actually be a getter that returns the global
object, and prints a deprecation warning. The '.clear' command is gone,
and will report that it's an invalid repl keyword. Tests updated to
allow the require, module, and exports globals, which are still
available in the repl just like they were before, by making them global.
2011-10-18 18:18:32 -07:00
Colton Baker
87286cc737
Fixed a lot of jslint errors.
...
Fixes #1831
2011-10-05 18:51:06 -07:00
Ben Noordhuis
fa44659c66
test: fix typo in error message
2011-09-29 04:51:40 +02:00
Thomas Shinnick
59b815b097
test: add typed arrays to known globals list
2011-08-13 23:51:31 +02:00
Ryan Dahl
35d0df919a
test: Allow common.ddCommand to be run in presence of existing file
2011-08-10 11:32:37 -07:00
Ryan Dahl
4983bd348d
x-platform func for spawning pwd in tests
...
Fixes test-child-process-buffering
2011-08-10 11:23:55 -07:00
Ryan Dahl
3ce4adf3c6
Remove unnecessary line
2011-08-09 18:05:57 -07:00
Ryan Dahl
3b0f2cecff
Fix dd command tests for Windows
2011-08-09 17:43:57 -07:00
Ryan Dahl
a6a3bf6d47
escape backslashes for windows pipe name
2011-07-21 14:19:24 -07:00
Ben Noordhuis
bff9602966
test: add common.PIPE, pipe name for tests
2011-07-21 21:26:57 +02:00
Ryan Dahl
52b517c6ab
Revert "Add --cov code coverage option"
...
This can be done in user space. EG https://github.com/cloudkick/whiskey
This reverts commit da9b3340eb
.
This reverts commit b4ff36a41b
.
Conflicts:
src/node.cc
2011-06-17 14:03:05 +02:00
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
2011-06-14 18:03:01 +02:00
Ryan Dahl
b4ff36a41b
Add --cov code coverage option
2011-04-14 23:42:08 -07:00
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
...
Closes GH-814.
Closes GH-827.
2011-03-28 15:28:55 -07:00
Ryan Dahl
55048cdf79
Update copyright headers
2011-03-14 17:37:05 -07:00
Ryan Dahl
aac5cbe025
HTTP Agent sockets should not reconnect on error
...
Closes GH-684.
2011-02-18 10:40:09 -08:00
Ryan Dahl
e9257b859d
New DTrace probes from CA team
2011-02-09 18:50:26 -08:00
Ryan Dahl
068b733583
Land Cantrill's DTrace patch
...
only works on solaris
2011-01-24 18:59:06 -08:00
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
...
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
2010-12-05 15:42:41 -08:00
Oleg Efimov
0665f0271e
GJSLint all simple tests exclude http-*, url, path
2010-12-05 15:41:58 -08:00
Oleg Efimov
0ce9cbab29
GJSLint continue
2010-12-05 09:28:18 -08:00
Ryan Dahl
02cc39f221
Check for global leaks in all tests
2010-12-04 16:36:21 -08:00
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
2010-10-11 15:21:36 -07:00
isaacs
85fb47c11c
Better temporary directory handling for tests.
...
Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.
TODO: amend other tests.
2010-09-09 16:43:18 -07:00
Herbert Vojčík
cf2b206a8e
More changes to tests so they really work under context module loader.
...
Plus, getting rid of test/common.js defining things in global.
2010-08-17 08:41:05 -07:00
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
2010-07-15 14:21:31 -07:00
Ryan Dahl
5f30377bbc
Load modules in individual contexts
...
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
2010-07-15 10:34:39 -07:00
Ryan Dahl
a6f904cab7
Tests should use compiled-in modules not build-dir modules
2010-03-15 08:14:51 -07:00
isaacs
5861db8a69
Remove process.mixin dependency from all tests.
2010-03-08 17:57:04 -08:00
Felix Geisendörfer
44dde5f24c
Remove fs/path globals from test suite
...
It is way too easy to not notice bugs due to those modules being
exported as globals while running the test suite.
See: http://github.com/ry/node/issues#issue/75
2010-03-08 10:20:07 -08:00
arlolra
724ccf10df
Tests on common port.
2010-02-26 12:20:10 -08:00
Ryan Dahl
b08f2af344
Update common.js path for new test layout
2010-02-25 12:01:23 -08:00
arlolra
04fac19822
Split tests.
2010-02-25 11:41:11 -08:00