gecko/dom/tests/browser/test-console-api.html

20 lines
536 B
HTML

<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<title>Console API test page</title>
<script type="text/javascript">
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);
}
</script>
</head>
<body>
<h1>Console API Test Page</h1>
<button onclick="test();">Log stuff</button>
</body>
</html>