diff options
author | Brandon Beacher <brandon.beacher@gmail.com> | 2009-11-03 13:13:38 -0500 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2009-11-03 19:22:37 +0100 |
commit | 47fcf785ac1468744da55469bc78fbfd8628d9fb (patch) | |
tree | 784c53c4b91c04377836e8bc77da70ef2c38ae96 /test | |
parent | 726865af7bbafe58435986f4a193ff11c84e4bfe (diff) | |
download | nodejs-47fcf785ac1468744da55469bc78fbfd8628d9fb.tar.gz nodejs-47fcf785ac1468744da55469bc78fbfd8628d9fb.tar.bz2 nodejs-47fcf785ac1468744da55469bc78fbfd8628d9fb.zip |
Added process.chdir()
Diffstat (limited to 'test')
-rw-r--r-- | test/mjsunit/test-chdir.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/mjsunit/test-chdir.js b/test/mjsunit/test-chdir.js new file mode 100644 index 000000000..11a32c638 --- /dev/null +++ b/test/mjsunit/test-chdir.js @@ -0,0 +1,9 @@ +process.mixin(require("./common")); + +var dirname = path.dirname(__filename); + +assertTrue(process.cwd() !== dirname); + +process.chdir(dirname); + +assertTrue(process.cwd() === dirname); |