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

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

Issue 2150993004: [DevTools] Remove V8Debugger::consoleMessagesCount. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 src="resources/console-clear-arguments-test.js"></script> 3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/console-test.js"></script>
4 <script> 5 <script>
5 if (window.testRunner) { 6 if (window.testRunner) {
6 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
7 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
8 } 9 }
9 10
10 function removeIFrame() 11 function removeIFrame()
11 { 12 {
12 var container = document.getElementById('container'); 13 var container = document.getElementById('container');
13 var child = container.firstChild; 14 var child = container.firstChild;
14 while (child) { 15 while (child) {
15 container.removeChild(child); 16 container.removeChild(child);
16 child = container.firstChild; 17 child = container.firstChild;
17 } 18 }
18 dumpConsoleMessageCounts();
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.notifyDone(); 20 testRunner.showWebInspector();
21 runTest();
21 } 22 }
22 23
23 function createIFrame() 24 function createIFrame()
24 { 25 {
25 var iframe = document.createElement('iframe'); 26 var iframe = document.createElement('iframe');
26 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html'); 27 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html');
27 iframe.onload= removeIFrame; 28 iframe.onload= removeIFrame;
28 document.getElementById('container').appendChild(iframe); 29 document.getElementById('container').appendChild(iframe);
29 } 30 }
30 31
32 function test()
33 {
34 for (var message of InspectorTest.mainTarget.consoleModel.messages()) {
35 var args = (message.parameters || []).map((arg) => arg.type);
36 InspectorTest.addResult("Message: \"" + message.messageText + "\", argum ents: [" + args.join(", ") + "]");
37 }
38 InspectorTest.completeTest();
39 }
31 </script> 40 </script>
32 </head> 41 </head>
33 <body onload="createIFrame()"> 42 <body onload="createIFrame()">
34 <p> 43 <p>
35 Tests that console message arguments will be cleared when iframe where the messa ges 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
36 created is removed. 45 created is removed.
37 </p> 46 </p>
38 <div id="container"></div> 47 <div id="container"></div>
39 <div id="output"></div> 48 <div id="output"></div>
40 </body> 49 </body>
41 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698