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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-viewport-stick-to-bottom.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
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> 5 <script>
6 function populateConsoleWithMessages(count) 6 function populateConsoleWithMessages(count)
7 { 7 {
8 for (var i = 0; i < count - 1; ++i) 8 for (var i = 0; i < count - 1; ++i)
9 console.log("Message #" + i); 9 console.log("Message #" + i);
10 console.log("hello %cworld", "color: blue"); 10 console.log("hello %cworld", "color: blue");
11 } 11 }
12 12
13 //# sourceURL=console-viewport-selection.html 13 //# sourceURL=console-viewport-selection.html
14 </script> 14 </script>
15 15
16 <script> 16 <script>
17 17
18 function test() 18 function test()
19 { 19 {
20 InspectorTest.fixConsoleViewportDimensions(600, 200); 20 InspectorTest.fixConsoleViewportDimensions(600, 200);
21 var consoleView = WebInspector.ConsolePanel._view(); 21 var consoleView = WebInspector.ConsoleView.instance();
22 var viewport = consoleView._viewport; 22 var viewport = consoleView._viewport;
23 const minimumViewportMessagesCount = 10; 23 const minimumViewportMessagesCount = 10;
24 const messagesCount = 150; 24 const messagesCount = 150;
25 const middleMessage = messagesCount / 2; 25 const middleMessage = messagesCount / 2;
26 var viewportMessagesCount; 26 var viewportMessagesCount;
27 27
28 logMessagesToConsole(messagesCount, () => InspectorTest.runTestSuite(testSui te)); 28 logMessagesToConsole(messagesCount, () => InspectorTest.runTestSuite(testSui te));
29 29
30 var testSuite = [ 30 var testSuite = [
31 function verifyViewportIsTallEnough(next) 31 function verifyViewportIsTallEnough(next)
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 } 93 }
94 </script> 94 </script>
95 </head> 95 </head>
96 <body onload="runTest()"> 96 <body onload="runTest()">
97 <p> 97 <p>
98 Verifies viewport stick-to-bottom behavior. 98 Verifies viewport stick-to-bottom behavior.
99 </p> 99 </p>
100 </body> 100 </body>
101 </html> 101 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698