This repository has been archived by the owner on Jul 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.html
60 lines (47 loc) · 1.96 KB
/
test.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test FixIEConsole</title>
<script src="normalizeconsole.min.js"></script>
<script>
function appendMessage(txt) {
// where oh where is my jQuery :(
var oNewP = document.createElement("p");
var oText = document.createTextNode(txt);
oNewP.appendChild(oText);
document.body.appendChild(oNewP);
}
window.onload = function() { // p.s. I still miss you jQuery, come back soon
console.clear && console.clear();
console.time('All Tests');
console.group('Test Functions');
console.log('console.log');
console.info('console.info');
console.warn('console.warn');
console.error('console.error');
console.groupEnd();
console.group('Test Meta');
console.log('typeof(console.log)', typeof(console.log));
console.log.call(console, 'console.log.call');
console.log.apply(console, ['console.log.apply']);
console.error.call(console, 'console.error.call');
console.error.apply(console, ['console.error.apply']);
console.groupEnd();
console.groupCollapsed('Test Collapsed Functions');
console.log('console.log');
console.info('console.info');
console.warn('console.warn');
console.error('console.error');
console.groupEnd();
console.group('Time and TimeEnd');
console.timeEnd('All Tests');
console.groupEnd();
appendMessage('Completed all tests (if you see this, there were no errors)');
}
</script>
</head>
<body>
<p>Open debug console to see output (F12); Close debug console to see a lack of errors.</p>
</body>
</html>