OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
5 <script> | 5 <script> |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.consoleModel.addMessage(new SDK.ConsoleMessage(InspectorTest.c
onsoleModel.target(), SDK.ConsoleMessage.MessageSource.Other, SDK.ConsoleMessage
.MessageLevel.Info, "PASS")); | 8 InspectorTest.consoleModel.addMessage(new SDK.ConsoleMessage(InspectorTest.m
ainTarget, SDK.ConsoleMessage.MessageSource.Other, SDK.ConsoleMessage.MessageLev
el.Info, "PASS")); |
9 Common.settingForTest("preserveConsoleLog").set(true); | 9 Common.settingForTest("preserveConsoleLog").set(true); |
10 InspectorTest.reloadPage(function() { | 10 InspectorTest.reloadPage(function() { |
11 InspectorTest.dumpConsoleMessages(); | 11 InspectorTest.dumpConsoleMessages(); |
12 Common.settingForTest("preserveConsoleLog").set(false); | 12 Common.settingForTest("preserveConsoleLog").set(false); |
13 InspectorTest.completeTest(); | 13 InspectorTest.completeTest(); |
14 }); | 14 }); |
15 } | 15 } |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 <body onload="runTest()"> | 18 <body onload="runTest()"> |
19 <p> | 19 <p> |
20 Tests that the console can preserve log messages across navigations. | 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> | 21 <a href="https://bugs.webkit.org/show_bug.cgi?id=53359">Bug 53359</a> |
22 </p> | 22 </p> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |