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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.html

Issue 1855363002: DevTools: [ux regression] There is no way to clear console history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="console-test.js"></script> 3 <script src="console-test.js"></script>
4 <script src="inspector-test.js"></script> 4 <script src="inspector-test.js"></script>
5 <script> 5 <script>
6 console.log("message from page!"); 6 console.log("message from page!");
7 7
8 function test() 8 function test()
9 { 9 {
10 var checkbox = WebInspector.ConsolePanel._view()._showAllMessagesCheckbox.in putElement; 10 var checkbox = WebInspector.ConsoleView.instance()._showAllMessagesCheckbox. inputElement;
11 11
12 //we can't use usual InspectorTest.dumpConsoleMessages(), because it dumps u rl of message and it flakes in case of iframe 12 //we can't use usual InspectorTest.dumpConsoleMessages(), because it dumps u rl of message and it flakes in case of iframe
13 function dumpVisibleConsoleMessageText() 13 function dumpVisibleConsoleMessageText()
14 { 14 {
15 var messageViews = WebInspector.ConsolePanel._view()._visibleViewMessage s; 15 var messageViews = WebInspector.ConsoleView.instance()._visibleViewMessa ges;
16 for (var i = 0; i < messageViews.length; ++i) { 16 for (var i = 0; i < messageViews.length; ++i) {
17 InspectorTest.addResult(messageViews[i].consoleMessage().messageText ); 17 InspectorTest.addResult(messageViews[i].consoleMessage().messageText );
18 } 18 }
19 } 19 }
20 20
21 InspectorTest.runTestSuite([ 21 InspectorTest.runTestSuite([
22 22
23 function testInitialState(next) 23 function testInitialState(next)
24 { 24 {
25 if (!checkbox.checked) 25 if (!checkbox.checked)
(...skipping 29 matching lines...) Expand all
55 </head> 55 </head>
56 56
57 <body> 57 <body>
58 <p> 58 <p>
59 Tests that console shows messages only from specific context when show all check box is unchecked.</a> 59 Tests that console shows messages only from specific context when show all check box is unchecked.</a>
60 </p> 60 </p>
61 <iframe name="myIFrame" src="resources/console-show-all-messages-iframe.html" on load="runTest()"></iframe> 61 <iframe name="myIFrame" src="resources/console-show-all-messages-iframe.html" on load="runTest()"></iframe>
62 62
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698