3 <script src="console-test.js"></script>
4 <script src="inspector-test.js"></script>
10 InspectorTest.showConsolePanel();
11 var selector = WebInspector.consoleView._executionContextSelector._selectElement;
12 var option = selector.firstChild;
14 if (option.textContent && option.textContent.startsWith("myIFrame"))
16 option = option.nextSibling;
19 InspectorTest.addResult("FAILED: myIFrame not found in the context list");
20 InspectorTest.completeTest();
23 option.selected = true;
24 WebInspector.consoleView._executionContextChanged();
26 InspectorTest.evaluateInConsoleAndDump("foo", finish);
29 InspectorTest.completeTest();
38 Tests that console evaluation can be performed in an iframe context.<a href="https://bugs.webkit.org/show_bug.cgi?id=19872">Bug 19872.</a>
40 <iframe name="myIFrame" src="http://localhost:8000/inspector/resources/console-cd-iframe.html" onload="runTest()"></iframe>