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

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

Issue 2139043002: DevTools: show alternate title onexpand of object in console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuse dump() in tests Created 4 years, 4 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 6
7 window.accessedGet = false; 7 window.accessedGet = false;
8 function testFunction() 8 function testFunction()
9 { 9 {
10 let proxied = new Proxy({ boo: 42 }, { 10 let proxied = new Proxy({ boo: 42 }, {
(...skipping 15 matching lines...) Expand all
26 function test() 26 function test()
27 { 27 {
28 InspectorTest.waitUntilNthMessageReceived(2, dumpMessages); 28 InspectorTest.waitUntilNthMessageReceived(2, dumpMessages);
29 InspectorTest.evaluateInPage("testFunction()"); 29 InspectorTest.evaluateInPage("testFunction()");
30 30
31 function dumpMessages() 31 function dumpMessages()
32 { 32 {
33 var consoleView = WebInspector.ConsoleView.instance(); 33 var consoleView = WebInspector.ConsoleView.instance();
34 consoleView._viewport.invalidate() 34 consoleView._viewport.invalidate()
35 var element = consoleView._visibleViewMessages[0].contentElement(); 35 var element = consoleView._visibleViewMessages[0].contentElement();
36 dumpNoteVisible(element, "info-note");
37 36
38 InspectorTest.dumpConsoleMessages(false, true); 37 InspectorTest.dumpConsoleMessages(false, true);
39 InspectorTest.evaluateInPage("window.accessedGet", dumpAccessedGetAndExp and); 38 InspectorTest.evaluateInPage("window.accessedGet", dumpAccessedGetAndExp and);
40 } 39 }
41 40
42 function dumpAccessedGetAndExpand(result) 41 function dumpAccessedGetAndExpand(result)
43 { 42 {
44 InspectorTest.addResult("window.accessedGet = " + result.value); 43 InspectorTest.addResult("window.accessedGet = " + result.value);
45 InspectorTest.expandConsoleMessages(dumpExpandedConsoleMessages); 44 InspectorTest.expandConsoleMessages(dumpExpandedConsoleMessages);
46 } 45 }
(...skipping 23 matching lines...) Expand all
70 </script> 69 </script>
71 </head> 70 </head>
72 71
73 <body onload="runTest()"> 72 <body onload="runTest()">
74 <p> 73 <p>
75 Tests that console logging dumps proxy properly. 74 Tests that console logging dumps proxy properly.
76 </p> 75 </p>
77 76
78 </body> 77 </body>
79 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698