Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-substituted.html
blob73c5f692ad07ff760e1e5950a9e528428e88c3be
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function deleteConsole()
9 window.console = undefined;
12 function substituteConsole()
14 Object.defineProperty(window, "__commandLineAPI", { enumerable: false, configurable: false, get: function() { throw "Substituted" }});
17 var test = function()
19 InspectorTest.evaluateInConsole("deleteConsole()", step1);
21 function 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();
44 </script>
45 </head>
47 <body onload="runTest()">
48 <p>
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>
51 </p>
53 </body>
54 </html>