diff options
author | arlolra <arlolra@gmail.com> | 2010-02-25 01:36:17 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-02-25 11:41:11 -0800 |
commit | 04fac198225ae48ed7726c15609d254fddce4862 (patch) | |
tree | b09866cfed0c40d4cd3731f1d8b161e335df17e0 /test/fixtures/b | |
parent | 9ad7539cf9c36edf4b014adb1ce979f578de0aa1 (diff) | |
download | node-new-04fac198225ae48ed7726c15609d254fddce4862.tar.gz |
Split tests.
Diffstat (limited to 'test/fixtures/b')
-rw-r--r-- | test/fixtures/b/c.js | 28 | ||||
-rw-r--r-- | test/fixtures/b/d.js | 12 | ||||
-rw-r--r-- | test/fixtures/b/package/index.js | 2 |
3 files changed, 42 insertions, 0 deletions
diff --git a/test/fixtures/b/c.js b/test/fixtures/b/c.js new file mode 100644 index 0000000000..6aaf186726 --- /dev/null +++ b/test/fixtures/b/c.js @@ -0,0 +1,28 @@ +var d = require("./d"); + +var assert = require("assert"); + +var package = require("./package"); + +assert.equal("world", package.hello); + +debug("load fixtures/b/c.js"); + +var string = "C"; + +exports.SomeClass = function() { + +}; + +exports.C = function () { + return string; +}; + +exports.D = function () { + return d.D(); +}; + +process.addListener("exit", function () { + string = "C done"; + puts("b/c.js exit"); +}); diff --git a/test/fixtures/b/d.js b/test/fixtures/b/d.js new file mode 100644 index 0000000000..076d96af74 --- /dev/null +++ b/test/fixtures/b/d.js @@ -0,0 +1,12 @@ +debug("load fixtures/b/d.js"); + +var string = "D"; + +exports.D = function () { + return string; +}; + +process.addListener("exit", function () { + string = "D done"; +}); + diff --git a/test/fixtures/b/package/index.js b/test/fixtures/b/package/index.js new file mode 100644 index 0000000000..4a19b877e5 --- /dev/null +++ b/test/fixtures/b/package/index.js @@ -0,0 +1,2 @@ +exports.hello = "world"; +debug("load package/index.js"); |