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

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

Issue 222143003: DevTools: Make ConsoleMessage TargetAware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@console-cpp-exec-context
Patch Set: Rebase Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-timestamp.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebInspector.console.addMessage(new WebInspector.ConsoleMessage(WebInspector .ConsoleMessage.MessageSource.Other, WebInspector.ConsoleMessage.MessageLevel.Lo g, "PASS")); 8 WebInspector.console.addMessage(new WebInspector.ConsoleMessage(WebInspector .console.target(), WebInspector.ConsoleMessage.MessageSource.Other, WebInspector .ConsoleMessage.MessageLevel.Log, "PASS"));
9 WebInspector.settings.preserveConsoleLog.set(true); 9 WebInspector.settings.preserveConsoleLog.set(true);
10 InspectorTest.reloadPage(function() { 10 InspectorTest.reloadPage(function() {
11 InspectorTest.dumpConsoleMessages(); 11 InspectorTest.dumpConsoleMessages();
12 WebInspector.settings.preserveConsoleLog.set(false); 12 WebInspector.settings.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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-timestamp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698