blob: 696cef71d21547b416d5695552b8f832a502b8b4 [file] [log] [blame]
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>
Object = function() {};
function test()
{
InspectorTest.evaluateInConsole("var foo = {bar:2012}; foo", step1);
function step1()
{
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that Web Inspector's console is not broken if Object is overwritten in the inspected page.
Test passes if the expression is evaluated in the console and no errors printed.
<a href="https://bugs.webkit.org/show_bug.cgi?id=101320">Bug 101320.</a>
</p>
</body>
</html>