mirror of https://github.com/nodejs/node.git
16 lines
357 B
JavaScript
16 lines
357 B
JavaScript
include("mjsunit");
|
|
var assert_count = 0;
|
|
|
|
function onLoad () {
|
|
var dirname = node.path.dirname(__filename);
|
|
var fixtures = node.path.join(dirname, "fixtures");
|
|
var x = node.path.join(fixtures, "x.txt");
|
|
|
|
file = new node.fs.File;
|
|
file.open(x, "r", function (status) {
|
|
assertTrue(status == 0);
|
|
assert_count += 1;
|
|
file.close();
|
|
});
|
|
};
|