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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-format-es6-2.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 var globals = []; 7 var globals = [];
8 8
9 function log(current) 9 function log(current)
10 { 10 {
(...skipping 29 matching lines...) Expand all
40 function test() 40 function test()
41 { 41 {
42 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) ); 42 InspectorTest.evaluateInPage("globals.length", loopOverGlobals.bind(this, 0) );
43 43
44 function loopOverGlobals(current, total) 44 function loopOverGlobals(current, total)
45 { 45 {
46 function advance() 46 function advance()
47 { 47 {
48 var next = current + 1; 48 var next = current + 1;
49 if (next == total.description) 49 if (next == total.description)
50 InspectorTest.expandConsoleMessages(finish); 50 finish();
51 else 51 else
52 loopOverGlobals(next, total); 52 loopOverGlobals(next, total);
53 } 53 }
54 54
55 function finish() 55 function finish()
56 { 56 {
57 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo ntentWithLineBreaks);
58 InspectorTest.addResult("Expanded all messages");
57 InspectorTest.expandConsoleMessages(dumpConsoleMessages); 59 InspectorTest.expandConsoleMessages(dumpConsoleMessages);
58 } 60 }
59 61
60 function dumpConsoleMessages() 62 function dumpConsoleMessages()
61 { 63 {
62 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo ntentWithLineBreaks); 64 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textCo ntentWithLineBreaks);
63 InspectorTest.completeTest(); 65 InspectorTest.completeTest();
64 } 66 }
65 67
66 InspectorTest.evaluateInPage("log(" + current + ")"); 68 InspectorTest.evaluateInPage("log(" + current + ")");
67 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); 69 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole);
68 function evalInConsole() 70 function evalInConsole()
69 { 71 {
70 InspectorTest.evaluateInConsole("globals[" + current + "]"); 72 InspectorTest.evaluateInConsole("globals[" + current + "]");
71 InspectorTest.deprecatedRunAfterPendingDispatches(advance); 73 InspectorTest.deprecatedRunAfterPendingDispatches(advance);
72 } 74 }
73 } 75 }
74 } 76 }
75 </script> 77 </script>
76 </head> 78 </head>
77 79
78 <body onload="onload()"> 80 <body onload="onload()">
79 <p> 81 <p>
80 Tests that console properly displays information about ES6 features. 82 Tests that console properly displays information about ES6 features.
81 </p> 83 </p>
82 </body> 84 </body>
83 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698