| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |