Timothy J Fontaine
0b70a14abf
test: optionally set common.PORT via env variable
This is a back-port of commit 17a8126
from the master branch.
12 years ago
Ben Noordhuis
12d0f0bd3a
lib, src: remove errno global
Remove the errno global. It's a property on the process object now.
Fixes #3095 .
12 years ago
Timothy J Fontaine
17a812618d
test: optionally set common.PORT via env variable
12 years ago
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.
12 years ago
isaacs
3383d77c61
test: child process { stdio:'inherit' }
12 years ago
Ben Noordhuis
65d824b488
test: add common.mustCall function
Verifies that the callback gets invoked <n> times during the lifetime of the
test script.
This is a back-port of commit d0e6c3f
from the master branch.
12 years ago
Scott Blomquist
f657ce685d
windows: add tracing with performance counters
Patch by Henry Rawas and Scott Blomquist.
12 years ago
Ben Noordhuis
d0e6c3f5a6
test: add common.mustCall function
Verifies that the callback gets invoked <n> times during the lifetime of the
test script.
12 years ago
Timothy J Fontaine
382f22f229
timers: implement setImmediate
12 years ago
Mikael Bourges-Sevenier
67fc1dafd0
typed arrays: add Uint8ClampedArray
13 years ago
Your Name
fb47a337ba
test: changed instances of == to ===
13 years ago
isaacs
0cdf85e28d
Lint all the JavaScripts.
13 years ago
Bert Belder
892056bf97
tests: fix more lint issues
13 years ago
Igor Zinkovsky
0a5708c3e9
fix test-http-curl-chunk-problem.js and test-pipe-file-to-http.js on windows
13 years ago
isaacs
caf70f5e94
Revert "Don't use a separate context for the repl."
This reverts commit b70fed48a7
.
13 years ago
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.
13 years ago
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
13 years ago
Ben Noordhuis
fa44659c66
test: fix typo in error message
13 years ago
Thomas Shinnick
59b815b097
test: add typed arrays to known globals list
13 years ago
Ryan Dahl
35d0df919a
test: Allow common.ddCommand to be run in presence of existing file
13 years ago
Ryan Dahl
4983bd348d
x-platform func for spawning pwd in tests
Fixes test-child-process-buffering
13 years ago
Ryan Dahl
3ce4adf3c6
Remove unnecessary line
13 years ago
Ryan Dahl
3b0f2cecff
Fix dd command tests for Windows
13 years ago
Ryan Dahl
a6a3bf6d47
escape backslashes for windows pipe name
13 years ago
Ben Noordhuis
bff9602966
test: add common.PIPE, pipe name for tests
13 years ago
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
14 years ago
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
14 years ago
Ryan Dahl
b4ff36a41b
Add --cov code coverage option
14 years ago
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
Closes GH-814.
Closes GH-827.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
aac5cbe025
HTTP Agent sockets should not reconnect on error
Closes GH-684.
14 years ago
Ryan Dahl
e9257b859d
New DTrace probes from CA team
14 years ago
Ryan Dahl
068b733583
Land Cantrill's DTrace patch
only works on solaris
14 years ago
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).
14 years ago
Oleg Efimov
0665f0271e
GJSLint all simple tests exclude http-*, url, path
14 years ago
Oleg Efimov
0ce9cbab29
GJSLint continue
14 years ago
Ryan Dahl
02cc39f221
Check for global leaks in all tests
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
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.
14 years ago
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.
14 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
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.
15 years ago
Ryan Dahl
a6f904cab7
Tests should use compiled-in modules not build-dir modules
15 years ago
isaacs
5861db8a69
Remove process.mixin dependency from all tests.
15 years ago
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
15 years ago
arlolra
724ccf10df
Tests on common port.
15 years ago
Ryan Dahl
b08f2af344
Update common.js path for new test layout
15 years ago
arlolra
04fac19822
Split tests.
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Karl Guertin
4f679fd8d0
Dependency free assert module with unit tests
15 years ago