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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-viewport-selection.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 //# sourceURL=console-viewport-selection.html 12 //# sourceURL=console-viewport-selection.html
13 </script> 13 </script>
14 14
15 <script> 15 <script>
16 function test() 16 function test()
17 { 17 {
18 InspectorTest.fixConsoleViewportDimensions(600, 200); 18 InspectorTest.fixConsoleViewportDimensions(600, 200);
19 var consoleView = WebInspector.ConsolePanel._view(); 19 var consoleView = WebInspector.ConsoleView.instance();
20 var viewport = consoleView._viewport; 20 var viewport = consoleView._viewport;
21 const minimumViewportMessagesCount = 10; 21 const minimumViewportMessagesCount = 10;
22 const messagesCount = 150; 22 const messagesCount = 150;
23 const middleMessage = messagesCount / 2; 23 const middleMessage = messagesCount / 2;
24 var viewportMessagesCount; 24 var viewportMessagesCount;
25 25
26 var testSuite = [ 26 var testSuite = [
27 function verifyViewportIsTallEnough(next) 27 function verifyViewportIsTallEnough(next)
28 { 28 {
29 viewport.invalidate(); 29 viewport.invalidate();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 } 271 }
272 } 272 }
273 </script> 273 </script>
274 </head> 274 </head>
275 <body onload="runTest()"> 275 <body onload="runTest()">
276 <p> 276 <p>
277 Tests that console viewport handles selection properly. 277 Tests that console viewport handles selection properly.
278 </p> 278 </p>
279 </body> 279 </body>
280 </html> 280 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698