Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-preserve-log.html
blobbb98fbeaca183b4302e8038361cd886600fda945
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 function test()
8 InspectorTest.consoleModel.addMessage(new WebInspector.ConsoleMessage(InspectorTest.consoleModel.target(), WebInspector.ConsoleMessage.MessageSource.Other, WebInspector.ConsoleMessage.MessageLevel.Log, "PASS"));
9 WebInspector.settingForTest("preserveConsoleLog").set(true);
10 InspectorTest.reloadPage(function() {
11 InspectorTest.dumpConsoleMessages();
12 WebInspector.settingForTest("preserveConsoleLog").set(false);
13 InspectorTest.completeTest();
14 });
16 </script>
17 </head>
18 <body onload="runTest()">
19 <p>
20 Tests that the console can preserve log messages across navigations.
21 <a href="https://bugs.webkit.org/show_bug.cgi?id=53359">Bug 53359</a>
22 </p>
23 </body>
24 </html>