summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFelix Geisendörfer <felix@debuggable.com>2009-11-02 00:34:16 +0100
committerRyan Dahl <ry@tinyclouds.org>2009-11-02 21:20:44 +0100
commit7069bee982c40bdca4157a1bebfed6a9ff44e70a (patch)
tree53c785b9056f7587a7a43efdf53155dc4e7677a8 /test
parent2e40a9e15fe410d849025d68c1b2a0bd7df10a06 (diff)
downloadnodejs-7069bee982c40bdca4157a1bebfed6a9ff44e70a.tar.gz
nodejs-7069bee982c40bdca4157a1bebfed6a9ff44e70a.tar.bz2
nodejs-7069bee982c40bdca4157a1bebfed6a9ff44e70a.zip
The return of absolute Module loading
Diffstat (limited to 'test')
-rw-r--r--test/mjsunit/test-module-loading.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/mjsunit/test-module-loading.js b/test/mjsunit/test-module-loading.js
index 9659005d1..769c1b45a 100644
--- a/test/mjsunit/test-module-loading.js
+++ b/test/mjsunit/test-module-loading.js
@@ -5,6 +5,7 @@ debug("load test-module-loading.js");
var a = require("./fixtures/a");
var d = require("./fixtures/b/d");
var d2 = require("./fixtures/b/d");
+var d3 = require(require('path').dirname(__filename)+"/fixtures/b/d");
assertFalse(false, "testing the test program.");
@@ -23,6 +24,9 @@ assertEquals("D", d.D());
assertInstanceof(d2.D, Function);
assertEquals("D", d2.D());
+assertInstanceof(d3.D, Function);
+assertEquals("D", d3.D());
+
process.addListener("exit", function () {
assertInstanceof(a.A, Function);
assertEquals("A done", a.A());