Skip to content

Commit 74abb4e

Browse files
committed
catch fails in node.js tests
1 parent 4ef343e commit 74abb4e

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

test/browsertest/nodetests/index.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
require("./common").globalCheck = false;
22

3-
require("./simple/test-assert.js");
4-
require("./simple/test-event-emitter-check-listener-leaks.js");
5-
require("./simple/test-event-emitter-modify-in-emit.js");
6-
require("./simple/test-event-emitter-num-args.js");
7-
require("./simple/test-event-emitter-remove-all-listeners.js");
8-
require("./simple/test-global.js");
9-
require("./simple/test-next-tick-doesnt-hang.js");
10-
require("./simple/test-next-tick-ordering2.js");
11-
require("./simple/test-path.js");
12-
require("./simple/test-querystring.js");
13-
require("./simple/test-sys.js");
14-
require("./simple/test-timers-zero-timeout.js");
15-
require("./simple/test-timers.js");
16-
require("./simple/test-url.js");
17-
require("./simple/test-util-format.js");
18-
require("./simple/test-util-inspect.js");
19-
require("./simple/test-util.js");
3+
try { require("./simple/test-assert.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
4+
try { require("./simple/test-event-emitter-check-listener-leaks.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
5+
try { require("./simple/test-event-emitter-modify-in-emit.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
6+
try { require("./simple/test-event-emitter-num-args.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
7+
try { require("./simple/test-event-emitter-remove-all-listeners.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
8+
try { require("./simple/test-global.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
9+
try { require("./simple/test-next-tick-doesnt-hang.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
10+
try { require("./simple/test-next-tick-ordering2.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
11+
try { require("./simple/test-path.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
12+
try { require("./simple/test-querystring.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
13+
try { require("./simple/test-sys.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
14+
try { require("./simple/test-timers-zero-timeout.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
15+
try { require("./simple/test-timers.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
16+
try { require("./simple/test-url.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
17+
try { require("./simple/test-util-format.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
18+
try { require("./simple/test-util-inspect.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
19+
try { require("./simple/test-util.js"); } catch(e) { window.test(false, "Node.js Test should not fail with " + e ); }
2020

2121
window.test(true, "Node.js simple tests should complete");
2222

0 commit comments

Comments
 (0)