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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/monitor-console-command.html

Issue 2751193003: [DevTools] Move ConsoleModel to it's own module (Closed)
Patch Set: 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/console-test.js"></script> 5 <script src="../../../http/tests/inspector/console-test.js"></script>
6 6
7 <script> 7 <script>
8 function simpleTestFunction() 8 function simpleTestFunction()
9 { 9 {
10 return 0; 10 return 0;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 { 61 {
62 InspectorTest.evaluateInConsole("monitor(" + functionName + ")"); 62 InspectorTest.evaluateInConsole("monitor(" + functionName + ")");
63 InspectorTest.addResult("Start monitoring function."); 63 InspectorTest.addResult("Start monitoring function.");
64 64
65 InspectorTest.evaluateInConsole("setTimeout(function() { " + runCmd + " }, 0)"); 65 InspectorTest.evaluateInConsole("setTimeout(function() { " + runCmd + " }, 0)");
66 InspectorTest.addResult("Set timer for test function."); 66 InspectorTest.addResult("Set timer for test function.");
67 InspectorTest.waitUntilMessageReceived(didReceive); 67 InspectorTest.waitUntilMessageReceived(didReceive);
68 68
69 function didReceive(message) 69 function didReceive(message)
70 { 70 {
71 if (message.type === SDK.ConsoleMessage.MessageType.Result) { 71 if (message.type === ConsoleModel.ConsoleMessage.MessageType.Result) {
72 InspectorTest.waitUntilMessageReceived(didReceive); 72 InspectorTest.waitUntilMessageReceived(didReceive);
73 return; 73 return;
74 } 74 }
75 75
76 InspectorTest.addResult("Console message received: " + message.messa geText); 76 InspectorTest.addResult("Console message received: " + message.messa geText);
77 InspectorTest.evaluateInConsole("unmonitor(" + functionName + ")"); 77 InspectorTest.evaluateInConsole("unmonitor(" + functionName + ")");
78 InspectorTest.addResult("Stop monitoring."); 78 InspectorTest.addResult("Stop monitoring.");
79 next(); 79 next();
80 } 80 }
81 } 81 }
82 } 82 }
83 83
84 </script> 84 </script>
85 </head> 85 </head>
86 86
87 <body onload="runTest()"> 87 <body onload="runTest()">
88 <p> 88 <p>
89 Tests traceCalls(fn) console command. 89 Tests traceCalls(fn) console command.
90 </p> 90 </p>
91 91
92 </body> 92 </body>
93 </html> 93 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698