3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
7 function deleteConsole()
9 window
.console
= undefined;
12 function substituteConsole()
14 Object
.defineProperty(window
, "__commandLineAPI", { enumerable
: false, configurable
: false, get: function() { throw "Substituted" }});
19 InspectorTest
.evaluateInConsole("deleteConsole()", step1
);
23 InspectorTest
.evaluateInConsole("1", step2
);
26 function step2(result
)
28 InspectorTest
.addResult(result
);
29 InspectorTest
.evaluateInConsole("substituteConsole()", step3
);
32 function step3(result
)
34 InspectorTest
.evaluateInConsole("2", step4
);
37 function step4(result
)
39 InspectorTest
.addResult(result
);
40 InspectorTest
.completeTest();
47 <body onload=
"runTest()">
49 Tests that evaluate in console works even if window.console is substituted or deleted.
50 <a href=
"https://bugs.webkit.org/show_bug.cgi?id=53072">Bug
53072</a>