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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console/console-links-on-messages-before-inspection.html

Issue 1820393002: DevTools: [ux regression] There is no way to clear console history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../console-test.js"></script> 4 <script src="../console-test.js"></script>
5 <script> 5 <script>
6 6
7 function loadScript() 7 function loadScript()
8 { 8 {
9 var script = document.createElement('script'); 9 var script = document.createElement('script');
10 script.type = "text/javascript"; 10 script.type = "text/javascript";
(...skipping 11 matching lines...) Expand all
22 22
23 InspectorTest.dumpConsoleMessages(); 23 InspectorTest.dumpConsoleMessages();
24 InspectorTest.evaluateInPage("loadScript()"); 24 InspectorTest.evaluateInPage("loadScript()");
25 25
26 function onScriptAdded(event) 26 function onScriptAdded(event)
27 { 27 {
28 if (!event.data.contentURL().endsWith("source2.js")) 28 if (!event.data.contentURL().endsWith("source2.js"))
29 return; 29 return;
30 30
31 InspectorTest.addResult("script was added"); 31 InspectorTest.addResult("script was added");
32 var message = WebInspector.ConsolePanel._view()._visibleViewMessages[0]; 32 var message = WebInspector.ConsoleView.instance()._visibleViewMessages[0 ];
33 message._anchorElement.click(); 33 message._anchorElement.click();
34 } 34 }
35 35
36 InspectorFrontendHost.openInNewTab = function() 36 InspectorFrontendHost.openInNewTab = function()
37 { 37 {
38 InspectorTest.addResult("Failure: Open link in new tab!!"); 38 InspectorTest.addResult("Failure: Open link in new tab!!");
39 InspectorTest.completeTest(); 39 InspectorTest.completeTest();
40 }; 40 };
41 41
42 WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedP ane.EventTypes.TabSelected, panelChanged); 42 WebInspector.inspectorView._tabbedPane.addEventListener(WebInspector.TabbedP ane.EventTypes.TabSelected, panelChanged);
43 43
44 function panelChanged() 44 function panelChanged()
45 { 45 {
46 InspectorTest.addResult("Panel " + WebInspector.inspectorView.currentPan el().name + " was opened"); 46 InspectorTest.addResult("Panel " + WebInspector.inspectorView.currentPan el().name + " was opened");
47 InspectorTest.completeTest(); 47 InspectorTest.completeTest();
48 } 48 }
49 49
50 50
51 } 51 }
52 52
53 </script> 53 </script>
54 </head> 54 </head>
55 55
56 <body onload="runTest()"> 56 <body onload="runTest()">
57 <p> 57 <p>
58 Tests a handling of a click on the link in a message, which had been shown befor e its originating script was added. 58 Tests a handling of a click on the link in a message, which had been shown befor e its originating script was added.
59 </p> 59 </p>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698