Revert accidental change included in aafeff43ea25, a=mistake

This commit is contained in:
Gavin Sharp 2010-11-16 16:45:15 -05:00
parent 0b826f8b02
commit 594d6754f7
2 changed files with 8 additions and 3 deletions

View File

@ -57,6 +57,7 @@ function testOpenWebConsole()
hudId = HUDService.displaysIndex()[0];
hud = HUDService.getHeadsUpDisplay(hudId);
HUDService.logWarningAboutReplacedAPI(hudId);
testWarning();
}

View File

@ -1,11 +1,15 @@
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US"><head>
<title>Console test replaced API</title>
<script type="text/javascript">
function replaceAPI() {
var console = {log: function (msg){}, info: function (msg){}, warn: function (msg){}, error: function (msg){}};
window.console = console;
}
</script>
</head>
<body>
<h1 id="header">Web Console Replace API Test</h1>
<script type="text/javascript">
window.console = {log: function (msg){}, info: function (msg){}, warn: function (msg){}, error: function (msg){}};
</script>
<button onclick="replaceAPI();">ReplaceAPI</button>
</body>
</html>