2009-04-21 19:52:21 +08:00
|
|
|
include("mjsunit");
|
|
|
|
var assert_count = 0;
|
|
|
|
|
2009-04-21 22:30:47 +08:00
|
|
|
function onLoad () {
|
|
|
|
var dirname = node.path.dirname(__filename);
|
|
|
|
var fixtures = node.path.join(dirname, "fixtures");
|
2009-04-21 19:52:21 +08:00
|
|
|
var x = node.path.join(fixtures, "x.txt");
|
|
|
|
|
2009-05-21 18:49:41 +08:00
|
|
|
file = new node.fs.File;
|
2009-05-25 19:17:35 +08:00
|
|
|
file.onError = function (method, errno, msg) {
|
|
|
|
assertTrue(false);
|
|
|
|
};
|
|
|
|
|
|
|
|
file.open(x, "r", function () {
|
2009-04-21 19:52:21 +08:00
|
|
|
assert_count += 1;
|
2009-04-23 19:18:38 +08:00
|
|
|
file.close();
|
2009-04-21 19:52:21 +08:00
|
|
|
});
|
|
|
|
};
|