gecko/browser/devtools/webconsole/test/test-own-console.html
Henri Sivonen 4e93a91b3a Bug 672453 - Whine to console about various character encoding declaration-related authoring errors. r=smaug.
--HG--
rename : extensions/universalchardet/tests/bug631751be_text.html => parser/htmlparser/tests/mochitest/file_bug672453_bomless_utf16.html
2012-03-24 13:34:42 +02:00

25 lines
493 B
HTML

<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<meta charset="utf-8">
<script>
var _console = {
foo: "bar"
}
window.console = _console;
function loadIFrame() {
var iframe = document.body.querySelector("iframe");
iframe.addEventListener("load", function() {
iframe.removeEventListener("load", arguments.callee, true);
}, true);
iframe.setAttribute("src", "test-console.html");
}
</script>
</head>
<body>
<iframe></iframe>
</body>