1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
include("mjsunit.js");
var a = require("fixtures/a.js");
var d = require("fixtures/b/d.js");
var d2 = require("fixtures/b/d.js");
function onLoad () {
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());
}
|