Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Oleg Efimov
c0d69a4883
GJSLint part of 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
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
arlolra
04fac19822
Split tests.
15 years ago
Felix Geisendörfer
b02b54e003
Fix: Module cache did not propagate
This patch makes sure nested modules are available in their parents
cache. The module simplification broke this behavior.
See:
http://groups.google.com/group/nodejs/browse_thread/thread/e875132469547d2
b73f61a137
15 years ago
Felix Geisendörfer
530328f12b
CommonJS testing for node.js
Refactored test suite to use the assert module for testing rather than
mjsunit.
15 years ago
Ryan Dahl
7a2e784ad7
Module refactor - almost CommonJS compatible now
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
15 years ago
Ryan
723c7d9f7c
Replace onExit() with process.addListener("exit")
- Update documentation.
- Depreciation message for onExit().
15 years ago
Ryan
3fed1a0954
Use v8's test runner
16 years ago
Ryan
8b49cef10b
Modify the tests to use onExit hook.
No need to rely on stdout output now.
onExit callbacks should print stack trace from onExit failure
16 years ago
Ryan
f6a7fe2657
Implement onExit() hook for modules.
onExit() is similar to the onLoad() callback. onExit() is called on each
module just before the process exits. This can be used to check state in
unit tests, but not to perform I/O. The process will forcibly exit as soon
as all of the onExit callbacks are made.
16 years ago
Ryan
b6fe4aec50
Module system refactor
There is one major API change in the refactor: filename extensions are now
required when requiring or including modules.
Added extra test to test-module-loading.js.
16 years ago
Ryan
408526a1c1
debugging/improving the module framework
16 years ago