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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-show-all-messages.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="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.ConsoleView.instance()._showAllMessagesCheckbox. inputElement; 10 var checkbox = Console.ConsoleView.instance()._showAllMessagesCheckbox.input Element;
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.ConsoleView.instance()._visibleViewMessa ges; 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)
(...skipping 30 matching lines...) Expand all
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 all check box is unchecked.</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

Powered by Google App Engine
This is Rietveld 408576698