Revert accidental change included in aafeff43ea25, a=mistake

This commit is contained in:
Gavin Sharp 2010-11-16 16:45:15 -05:00
Родитель 0b826f8b02
Коммит 594d6754f7
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

@ -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>