Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
[gecko.git] / dom / console / tests / console.sys.mjs
blobd239d58a5d99bf49a9ad2de82575a908a84f5cb1
1 /**
2  * Any copyright is dedicated to the Public Domain.
3  * http://creativecommons.org/publicdomain/zero/1.0/
4  */
5 export var ConsoleTest = {
6   go(dumpFunction) {
7     console.log("Hello world!");
8     console.createInstance().log("Hello world!");
10     let c = console.createInstance({
11       consoleID: "wow",
12       innerID: "CUSTOM INNER",
13       dump: dumpFunction,
14       prefix: "_PREFIX_",
15     });
17     c.log("Hello world!");
18     c.trace("Hello world!");
20     console
21       .createInstance({ innerID: "LEVEL", maxLogLevel: "Off" })
22       .log("Invisible!");
23     console
24       .createInstance({ innerID: "LEVEL", maxLogLevel: "All" })
25       .log("Hello world!");
26     console
27       .createInstance({
28         innerID: "LEVEL",
29         maxLogLevelPref: "pref.test.console",
30       })
31       .log("Hello world!");
33     this.c2 = console.createInstance({
34       innerID: "NO PREF",
35       maxLogLevel: "Warn",
36       maxLogLevelPref: "pref.test.console.notset",
37     });
38     this.c2.log("Invisible!");
39     this.c2.warn("Hello world!");
40   },
42   go2() {
43     this.c2.log("Hello world!");
44   },