| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function test() | |
| 8 { | |
| 9 if (window.testRunner) | |
| 10 testRunner.setPrivateBrowsingEnabled(true); | |
| 11 | |
| 12 console.log('This should show up once console messages are dumped, but shoul
d _not_ show up as a "CONSOLE MESSAGE:" at the top of the output.'); | |
| 13 | |
| 14 InspectorTest.dumpConsoleMessages(); | |
| 15 | |
| 16 if (window.testRunner) | |
| 17 testRunner.setPrivateBrowsingEnabled(false); | |
| 18 InspectorTest.completeTest(); | |
| 19 } | |
| 20 | |
| 21 </script> | |
| 22 </head> | |
| 23 | |
| 24 <body onload="runTest()"> | |
| 25 <p>In PrivateBrowsing mode, console messages are visible in the Console, but | |
| 26 aren't sent to ChromeClients (or printf'd) in order to ensure they never end | |
| 27 up in logs. Better safe than sorry.</p> | |
| 28 | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |