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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-format.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 5
6 <script> 6 <script>
7 // Global Values 7 // Global Values
8 var globals = []; 8 var globals = [];
9 9
10 function log(current) 10 function log(current)
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 { 107 {
108 var next = current + 1; 108 var next = current + 1;
109 if (next == total.description) 109 if (next == total.description)
110 InspectorTest.waitForRemoteObjectsConsoleMessages(onRemoteObject sLoaded); 110 InspectorTest.waitForRemoteObjectsConsoleMessages(onRemoteObject sLoaded);
111 else 111 else
112 loopOverGlobals(next, total); 112 loopOverGlobals(next, total);
113 } 113 }
114 114
115 function onRemoteObjectsLoaded() 115 function onRemoteObjectsLoaded()
116 { 116 {
117 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
118 InspectorTest.addResult("Expanded all messages");
117 InspectorTest.expandConsoleMessages(InspectorTest.expandConsoleMessa gesErrorParameters.bind(this, finish), undefined, function(section) { return sec tion.element.firstChild.textContent !== "#text"; }); 119 InspectorTest.expandConsoleMessages(InspectorTest.expandConsoleMessa gesErrorParameters.bind(this, finish), undefined, function(section) { return sec tion.element.firstChild.textContent !== "#text"; });
118 } 120 }
119 121
120 function finish() 122 function finish()
121 { 123 {
122 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames(); 124 InspectorTest.dumpConsoleMessagesIgnoreErrorStackFrames();
123 InspectorTest.completeTest(); 125 InspectorTest.completeTest();
124 } 126 }
125 127
126 InspectorTest.evaluateInPage("log(" + current + ")"); 128 InspectorTest.evaluateInPage("log(" + current + ")");
127 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole); 129 InspectorTest.deprecatedRunAfterPendingDispatches(evalInConsole);
128 function evalInConsole() 130 function evalInConsole()
129 { 131 {
130 InspectorTest.evaluateInConsole("globals[" + current + "]"); 132 InspectorTest.evaluateInConsole("globals[" + current + "]");
131 InspectorTest.deprecatedRunAfterPendingDispatches(advance); 133 InspectorTest.deprecatedRunAfterPendingDispatches(advance);
132 } 134 }
133 } 135 }
134 } 136 }
135 </script> 137 </script>
136 </head> 138 </head>
137 139
138 <body onload="onload()"> 140 <body onload="onload()">
139 <div id="x"></div> 141 <div id="x"></div>
140 <p id="p">Tests that console logging dumps proper messages.</p> 142 <p id="p">Tests that console logging dumps proper messages.</p>
141 </body> 143 </body>
142 <svg id="svg-node"></svg> 144 <svg id="svg-node"></svg>
143 </html> 145 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698