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

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

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit 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="resources/console-clear-arguments-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8 } 8 }
9 9
10 function removeIFrame() 10 function removeIFrame()
11 { 11 {
12 var container = document.getElementById('container'); 12 var container = document.getElementById('container');
13 var child = container.firstChild; 13 var child = container.firstChild;
14 while (child) { 14 while (child) {
15 container.removeChild(child); 15 container.removeChild(child);
16 child = container.firstChild; 16 child = container.firstChild;
17 } 17 }
18 dumpConsoleMessageArgumentCounts(); 18 dumpConsoleMessageCounts();
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.notifyDone(); 20 testRunner.notifyDone();
21 } 21 }
22 22
23 function createIFrame() 23 function createIFrame()
24 { 24 {
25 var iframe = document.createElement('iframe'); 25 var iframe = document.createElement('iframe');
26 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html'); 26 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html');
27 iframe.onload= removeIFrame; 27 iframe.onload= removeIFrame;
28 document.getElementById('container').appendChild(iframe); 28 document.getElementById('container').appendChild(iframe);
29 } 29 }
30 30
31 </script> 31 </script>
32 </head> 32 </head>
33 <body onload="createIFrame()"> 33 <body onload="createIFrame()">
34 <p> 34 <p>
35 Tests that console message arguments will be cleared when iframe where the messa ges were 35 Tests that console message arguments will be cleared when iframe where the messa ges were
36 created is removed. 36 created is removed.
37 </p> 37 </p>
38 <div id="container"></div> 38 <div id="container"></div>
39 <div id="output"></div> 39 <div id="output"></div>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698