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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/console-clear-arguments-on-frame-remove.html

Issue 2748023006: [DevTools] Make ConsoleModel not inherit from SDKModel (Closed)
Patch Set: stray change 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="../inspector/inspector-test.js"></script> 3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/console-test.js"></script> 4 <script src="../inspector/console-test.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 } 9 }
10 10
(...skipping 13 matching lines...) Expand all
24 function createIFrame() 24 function createIFrame()
25 { 25 {
26 var iframe = document.createElement('iframe'); 26 var iframe = document.createElement('iframe');
27 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html'); 27 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html');
28 iframe.onload= removeIFrame; 28 iframe.onload= removeIFrame;
29 document.getElementById('container').appendChild(iframe); 29 document.getElementById('container').appendChild(iframe);
30 } 30 }
31 31
32 function test() 32 function test()
33 { 33 {
34 for (var message of InspectorTest.mainTarget.consoleModel.messages()) { 34 for (var message of SDK.multitargetConsoleModel.messages()) {
35 var args = (message.parameters || []).map((arg) => arg.type); 35 var args = (message.parameters || []).map((arg) => arg.type);
36 InspectorTest.addResult("Message: \"" + message.messageText + "\", argum ents: [" + args.join(", ") + "]"); 36 InspectorTest.addResult("Message: \"" + message.messageText + "\", argum ents: [" + args.join(", ") + "]");
37 } 37 }
38 InspectorTest.completeTest(); 38 InspectorTest.completeTest();
39 } 39 }
40 </script> 40 </script>
41 </head> 41 </head>
42 <body onload="createIFrame()"> 42 <body onload="createIFrame()">
43 <p> 43 <p>
44 Tests that console message arguments will be cleared and first argument will be converted into a string when iframe where the messages were 44 Tests that console message arguments will be cleared and first argument will be converted into a string when iframe where the messages were
45 created is removed. 45 created is removed.
46 </p> 46 </p>
47 <div id="container"></div> 47 <div id="container"></div>
48 <div id="output"></div> 48 <div id="output"></div>
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698