Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/access-inspected-object.html

Issue 2151273003: [DevTools] Move browser logging from Console domain to Log domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@internals-method
Patch Set: protocol improvements Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="inspector-protocol-test.js"></script> 3 <script type="text/javascript" src="inspector-protocol-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function test() 10 function test()
(...skipping 24 matching lines...) Expand all
35 return; 35 return;
36 InspectorTest.eventHandler["DOM.setChildNodes"] = null; 36 InspectorTest.eventHandler["DOM.setChildNodes"] = null;
37 InspectorTest.sendCommand("DOM.querySelector", { 37 InspectorTest.sendCommand("DOM.querySelector", {
38 "nodeId": node.contentDocument.nodeId, 38 "nodeId": node.contentDocument.nodeId,
39 "selector": "div#rootDiv" 39 "selector": "div#rootDiv"
40 }, didFindDiv); 40 }, didFindDiv);
41 } 41 }
42 42
43 function didFindDiv(messageObject) 43 function didFindDiv(messageObject)
44 { 44 {
45 InspectorTest.sendCommand("Console.enable", {});
46 InspectorTest.sendCommand("DOM.setInspectedNode", { 45 InspectorTest.sendCommand("DOM.setInspectedNode", {
47 "nodeId": messageObject.result.nodeId 46 "nodeId": messageObject.result.nodeId
48 }, didAddInspectedNode); 47 }, didAddInspectedNode);
49 } 48 }
50 49
51 function didAddInspectedNode(messageObject) 50 function didAddInspectedNode(messageObject)
52 { 51 {
53 InspectorTest.sendCommand("Runtime.evaluate", { 52 InspectorTest.sendCommand("Runtime.evaluate", {
54 "expression": "$0", 53 "expression": "$0",
55 "includeCommandLineAPI": true 54 "includeCommandLineAPI": true
(...skipping 10 matching lines...) Expand all
66 } 65 }
67 } 66 }
68 67
69 </script> 68 </script>
70 </head> 69 </head>
71 <body> 70 <body>
72 <p>Test that code evaluated in the main frame cannot access $0 that resolves int o a node in a frame from a different domain. <a href="https://bugs.webkit.org/sh ow_bug.cgi?id=105423">Bug 105423.</p> 71 <p>Test that code evaluated in the main frame cannot access $0 that resolves int o a node in a frame from a different domain. <a href="https://bugs.webkit.org/sh ow_bug.cgi?id=105423">Bug 105423.</p>
73 <iframe id="myframe" src="http://localhost:8000/inspector-protocol/resources/tes t-page.html" onload="runTest()"></iframe> 72 <iframe id="myframe" src="http://localhost:8000/inspector-protocol/resources/tes t-page.html" onload="runTest()"></iframe>
74 </body> 73 </body>
75 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698