mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
852 B
38 lines
852 B
include("mjsunit.js");
|
|
var a = require("fixtures/a.js");
|
|
var d = require("fixtures/b/d.js");
|
|
var d2 = require("fixtures/b/d.js");
|
|
|
|
assertFalse(false, "testing the test program.");
|
|
|
|
assertInstanceof(a.A, Function);
|
|
assertEquals("A", a.A());
|
|
|
|
assertInstanceof(a.C, Function);
|
|
assertEquals("C", a.C());
|
|
|
|
assertInstanceof(a.D, Function);
|
|
assertEquals("D", a.D());
|
|
|
|
assertInstanceof(d.D, Function);
|
|
assertEquals("D", d.D());
|
|
|
|
assertInstanceof(d2.D, Function);
|
|
assertEquals("D", d2.D());
|
|
|
|
function onExit () {
|
|
assertInstanceof(a.A, Function);
|
|
assertEquals("A done", a.A());
|
|
|
|
assertInstanceof(a.C, Function);
|
|
assertEquals("C done", a.C());
|
|
|
|
assertInstanceof(a.D, Function);
|
|
assertEquals("D done", a.D());
|
|
|
|
assertInstanceof(d.D, Function);
|
|
assertEquals("D done", d.D());
|
|
|
|
assertInstanceof(d2.D, Function);
|
|
assertEquals("D done", d2.D());
|
|
}
|
|
|