| 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 = WebInspector.ConsoleView.instance()._showAllMessagesCheckbox.
inputElement; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 all messages\" checkbox shou
ld be checked 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 checkbox.click(); | 34 checkbox.click(); |
| 34 dumpVisibleConsoleMessageText(); | 35 dumpVisibleConsoleMessageText(); |
| 35 next(); | 36 next(); |
| 36 }, | 37 }, |
| 37 | 38 |
| 38 function testFrameOnlyMessages(next) | 39 function testFrameOnlyMessages(next) |
| 39 { | 40 { |
| 40 InspectorTest.changeExecutionContext("myIFrame"); | 41 InspectorTest.changeExecutionContext("myIFrame"); |
| 41 dumpVisibleConsoleMessageText(); | 42 dumpVisibleConsoleMessageText(); |
| 42 next(); | 43 next(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 55 </head> | 56 </head> |
| 56 | 57 |
| 57 <body> | 58 <body> |
| 58 <p> | 59 <p> |
| 59 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> |
| 60 </p> | 61 </p> |
| 61 <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> |
| 62 | 63 |
| 63 </body> | 64 </body> |
| 64 </html> | 65 </html> |
| OLD | NEW |