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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-viewport-selection.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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.ConsoleView.instance(); 19 var consoleView = Console.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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 292 }
293 } 293 }
294 </script> 294 </script>
295 </head> 295 </head>
296 <body onload="runTest()"> 296 <body onload="runTest()">
297 <p> 297 <p>
298 Tests that console viewport handles selection properly. 298 Tests that console viewport handles selection properly.
299 </p> 299 </p>
300 </body> 300 </body>
301 </html> 301 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698