-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole_func.html
36 lines (28 loc) · 1.09 KB
/
console_func.html
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
<html>
<head>
<title>Functional Testing for ConsoleJS</title>
<script type="text/javascript" src="console.js"></script>
</head>
<body>
<script type="text/javascript">
ConsoleJS.debugLevel(DEBUGLEVEL_VERBOSE);
ConsoleJS.version();
ConsoleJS.log("This message was logged");
ConsoleJS.info("This message is info");
ConsoleJS.debug("This is a debug message");
ConsoleJS.warn("This is a warning");
ConsoleJS.error("This is an error message");
ConsoleJS.log("Logging with another", "argument");
ConsoleJS.debug("Debugging with an ", ['array','of','values']);
ConsoleJS.warn("Warning about", {'an': 'object', 'with': 'something', 'inside': 'it'});
var f = function() {};
f.prototype.foo = function() { alert(foo); };
var fInstance = new f();
ConsoleJS.info("Reporting on an ", fInstance);
ConsoleJS.pretty(true);
ConsoleJS.info("Pretty print ", fInstance);
// Do this last
ConsoleJS.assert(true === false, "This is an assertion!");
</script>
</body>
</html>