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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-on-messages-before-inspection.html

Issue 2752403002: [DevTools] Migrate usages of Target to RuntimeModel where makes sense (Closed)
Patch Set: review comments addressed Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../console-test.js"></script> 4 <script src="../console-test.js"></script>
5 <script> 5 <script>
6 function loadScript() 6 function loadScript()
7 { 7 {
8 var script = document.createElement('script'); 8 var script = document.createElement('script');
9 script.type = "text/javascript"; 9 script.type = "text/javascript";
10 script.src = "../resources/source2.js"; 10 script.src = "../resources/source2.js";
11 document.body.appendChild(script); 11 document.body.appendChild(script);
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 var mainTarget = SDK.targetManager.mainTarget(); 16 var mainTarget = SDK.targetManager.mainTarget();
17 var debuggerModel = SDK.DebuggerModel.fromTarget(mainTarget); 17 var debuggerModel = InspectorTest.debuggerModel;
18 var message = new ConsoleModel.ConsoleMessage(mainTarget, ConsoleModel.Conso leMessage.MessageSource.JS, ConsoleModel.ConsoleMessage.MessageLevel.Info, "hell o?", null, "http://127.0.0.1:8000/inspector/resources/source2.js"); 18 var message = new ConsoleModel.ConsoleMessage(mainTarget, ConsoleModel.Conso leMessage.MessageSource.JS, ConsoleModel.ConsoleMessage.MessageLevel.Info, "hell o?", null, "http://127.0.0.1:8000/inspector/resources/source2.js");
19 ConsoleModel.consoleModel.addMessage(message); 19 ConsoleModel.consoleModel.addMessage(message);
20 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSource, onScriptAdded); 20 debuggerModel.addEventListener(SDK.DebuggerModel.Events.ParsedScriptSource, onScriptAdded);
21 21
22 InspectorTest.dumpConsoleMessages(); 22 InspectorTest.dumpConsoleMessages();
23 InspectorTest.evaluateInPage("loadScript()"); 23 InspectorTest.evaluateInPage("loadScript()");
24 24
25 function onScriptAdded(event) 25 function onScriptAdded(event)
26 { 26 {
27 if (!event.data.contentURL().endsWith("source2.js")) 27 if (!event.data.contentURL().endsWith("source2.js"))
(...skipping 24 matching lines...) Expand all
52 52
53 </script> 53 </script>
54 </head> 54 </head>
55 55
56 <body onload="runTest()"> 56 <body onload="runTest()">
57 <p> 57 <p>
58 Tests a handling of a click on the link in a message, which had been shown befor e its originating script was added. 58 Tests a handling of a click on the link in a message, which had been shown befor e its originating script was added.
59 </p> 59 </p>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/debugger-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698