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

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

Issue 2666013002: DevTools: render console filter in the main console toolbar. (Closed)
Patch Set: Introduce progress monitor Created 3 years, 10 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-show-all-messages-expected.txt » ('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 = Console.ConsoleView.instance()._showAllMessagesCheckbox.input Element; 10 var checkbox = Console.ConsoleView.instance()._filter._showTargetMessagesChe ckbox.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 = Console.ConsoleView.instance()._visibleViewMessages; 15 var messageViews = Console.ConsoleView.instance()._visibleViewMessages;
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)
26 InspectorTest.addResult("\"Show all messages\" checkbox shou ld be checked by default"); 26 InspectorTest.addResult("\"Show target messages\" checkbox s hould be unchecked by default");
27 dumpVisibleConsoleMessageText(); 27 dumpVisibleConsoleMessageText();
28 next(); 28 next();
29 }, 29 },
30 30
31 function testPageOnlyMessages(next) 31 function testPageOnlyMessages(next)
32 { 32 {
33 InspectorTest.changeExecutionContext("top"); 33 InspectorTest.changeExecutionContext("top");
34 checkbox.click(); 34 checkbox.click();
35 dumpVisibleConsoleMessageText(); 35 dumpVisibleConsoleMessageText();
36 next(); 36 next();
(...skipping 13 matching lines...) Expand all
50 next(); 50 next();
51 } 51 }
52 ]); 52 ]);
53 } 53 }
54 54
55 </script> 55 </script>
56 </head> 56 </head>
57 57
58 <body> 58 <body>
59 <p> 59 <p>
60 Tests that console shows messages only from specific context when show all check box is unchecked.</a> 60 Tests that console shows messages only from specific context when show target ch eckbox is checked.</a>
61 </p> 61 </p>
62 <iframe name="myIFrame" src="resources/console-show-all-messages-iframe.html" on load="runTest()"></iframe> 62 <iframe name="myIFrame" src="resources/console-show-all-messages-iframe.html" on load="runTest()"></iframe>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698