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

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

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
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.consoleModel.addMessage(new WebInspector.ConsoleMessage(WebInsp ector.consoleModel.target(), WebInspector.ConsoleMessage.MessageSource.Other, We bInspector.ConsoleMessage.MessageLevel.Log, "PASS")); 8 InspectorTest.consoleModel.addMessage(new WebInspector.ConsoleMessage(Inspec torTest.consoleModel.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 | « LayoutTests/inspector/console/console-last-result.html ('k') | LayoutTests/inspector/console/console-timestamp.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698