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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/script-formatter-console.html

Issue 1820393002: DevTools: [ux regression] There is no way to clear console history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/console-test.js"></script> 4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 <script src="../../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../../http/tests/inspector/debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; } 8 function nonFormattedFunction() { var i = 2 + 2; var a = 4; return a + i; }
9 9
10 function f1() 10 function f1()
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 InspectorTest.addResult("Post-format row message list:"); 62 InspectorTest.addResult("Post-format row message list:");
63 var formattedSourceFrame = panel.visibleView; 63 var formattedSourceFrame = panel.visibleView;
64 InspectorTest.addResult(JSON.stringify(Object.keys(formattedSour ceFrame._rowMessageBuckets))); 64 InspectorTest.addResult(JSON.stringify(Object.keys(formattedSour ceFrame._rowMessageBuckets)));
65 next(); 65 next();
66 } 66 }
67 } 67 }
68 ]); 68 ]);
69 69
70 function dumpConsoleMessageURLs() 70 function dumpConsoleMessageURLs()
71 { 71 {
72 var messages = WebInspector.ConsolePanel._view()._visibleViewMessages; 72 var messages = WebInspector.ConsoleView.instance()._visibleViewMessages;
73 for (var i = 0; i < messages.length; ++i) { 73 for (var i = 0; i < messages.length; ++i) {
74 var element = messages[i].toMessageElement(); 74 var element = messages[i].toMessageElement();
75 var anchor = element.querySelector(".console-message-url"); 75 var anchor = element.querySelector(".console-message-url");
76 InspectorTest.addResult(anchor.textContent); 76 InspectorTest.addResult(anchor.textContent);
77 } 77 }
78 } 78 }
79 } 79 }
80 80
81 </script> 81 </script>
82 82
83 </head> 83 </head>
84 84
85 <body onload="onload()"> 85 <body onload="onload()">
86 <p>Tests that the script formatting changes console line numbers. 86 <p>Tests that the script formatting changes console line numbers.
87 </p> 87 </p>
88 88
89 </body> 89 </body>
90 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698