Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-preserve-log.html

Issue 2751173003: [DevTools] Turn ConsoleModel into a singleton (Closed)
Patch Set: rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698