mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
62 lines
1.7 KiB
HTML
62 lines
1.7 KiB
HTML
<!DOCTYPE HTML>
|
|
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
|
|
<title>Console API test page</title>
|
|
<script type="text/javascript">
|
|
window.foobar585956c = function(a) {
|
|
console.trace();
|
|
return a+"c";
|
|
};
|
|
|
|
function foobar585956b(a) {
|
|
return foobar585956c(a+"b");
|
|
}
|
|
|
|
function foobar585956a(omg) {
|
|
return foobar585956b(omg + "a");
|
|
}
|
|
|
|
function foobar646025(omg) {
|
|
console.log(omg, "o", "d");
|
|
}
|
|
|
|
function startTimer(timer) {
|
|
console.time(timer);
|
|
}
|
|
|
|
function stopTimer(timer) {
|
|
console.timeEnd(timer);
|
|
}
|
|
|
|
function namelessTimer() {
|
|
console.time();
|
|
console.timeEnd();
|
|
}
|
|
|
|
function test() {
|
|
var str = "Test Message."
|
|
console.foobar(str); // if this throws, we don't execute following funcs
|
|
console.log(str);
|
|
console.info(str);
|
|
console.warn(str);
|
|
console.error(str);
|
|
}
|
|
|
|
function testGroups() {
|
|
console.groupCollapsed("a", "group");
|
|
console.group("b", "group");
|
|
console.groupEnd("b", "group");
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<h1>Console API Test Page</h1>
|
|
<button onclick="test();">Log stuff</button>
|
|
<button id="test-trace" onclick="foobar585956a('omg');">Test trace</button>
|
|
<button id="test-location" onclick="foobar646025('omg');">Test location</button>
|
|
<button id="test-groups" onclick="testGroups();">Test groups</button>
|
|
<button id="test-time" onclick="startTimer('foo');">Test time</button>
|
|
<button id="test-timeEnd" onclick="stopTimer('foo');">Test timeEnd</button>
|
|
<button id="test-namelessTimer" onclick="namelessTimer();">Test namelessTimer</button>
|
|
</body>
|
|
</html>
|