2009-10-31 19:02:30 +01:00
|
|
|
process.mixin(require("./common"));
|
2009-09-03 21:29:20 +02:00
|
|
|
|
|
|
|
var got_error = false;
|
|
|
|
|
2009-10-28 22:45:40 +01:00
|
|
|
var promise = posix.readdir(fixturesDir);
|
2009-09-20 18:19:33 +02:00
|
|
|
puts("readdir " + fixturesDir);
|
2009-09-03 21:29:20 +02:00
|
|
|
|
|
|
|
promise.addCallback(function (files) {
|
|
|
|
p(files);
|
2009-10-06 21:38:35 +02:00
|
|
|
assertArrayEquals(["a.js", "b", "multipart.js", "x.txt"], files.sort());
|
2009-09-03 21:29:20 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
promise.addErrback(function () {
|
|
|
|
puts("error");
|
|
|
|
got_error = true;
|
|
|
|
});
|
|
|
|
|
|
|
|
process.addListener("exit", function () {
|
|
|
|
assertFalse(got_error);
|
|
|
|
puts("exit");
|
|
|
|
});
|