blob: 49c1b61a52e98b9b994a96d6d0fe649fe933f522 (
plain)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
function onload()
{
console.log('log');
console.debug('debug');
console.info('info');
console.warn('warn');
console.error('error');
for (var i = 0; i < 5; ++i)
console.log('repeated');
for (var i = 0; i < 2; ++i)
console.count('count');
console.group('group');
console.groupEnd();
console.log('1', '2', '3');
console.groupCollapsed('groupCollapsed');
console.log({ property: "value" });
console.log(42);
console.log(true);
console.log(null);
console.log(undefined);
console.log(document);
console.log(function() { });
console.log(function f() { });
console.log([1, 2, 3]);
console.log(/regexp.*/);
console.groupEnd();
console.count();
console.count();
console.count();
console.count("title");
console.count("title");
console.count("title");
runTest();
}
function test()
{
InspectorTest.dumpConsoleMessagesWithClasses();
InspectorTest.completeTest();
}
</script>
</head>
<body onload="onload()">
<p>
Tests that console logging dumps proper messages.
</p>
</body>
</html>
|