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

Side by Side Diff: LayoutTests/inspector/console/console-native-function-to-string.html

Issue 14148002: Added a shortcut for the console.table function. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-native-function-to-string-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 var test = function() 7 var test = function()
8 { 8 {
9 var expressions = [ 9 var expressions = [
10 "$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", " profileEnd", 10 "$", "$$", "$x", "dir", "dirxml", "keys", "values", "profile", " profileEnd",
11 "monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners" 11 "monitorEvents", "unmonitorEvents", "inspect", "copy", "clear", "getEventListeners", "table"
12 ]; 12 ];
13 13
14 function executeExpression() 14 function executeExpression()
15 { 15 {
16 if (!expressions.length) { 16 if (!expressions.length) {
17 InspectorTest.dumpConsoleMessages(); 17 InspectorTest.dumpConsoleMessages();
18 InspectorTest.completeTest(); 18 InspectorTest.completeTest();
19 return; 19 return;
20 } 20 }
21 var expression = expressions[0]; 21 var expression = expressions[0];
22 expressions.splice(0, 1); 22 expressions.splice(0, 1);
23 WebInspector.log("\n"); 23 WebInspector.log("\n");
24 InspectorTest.evaluateInConsole(expression, executeExpression); 24 InspectorTest.evaluateInConsole(expression, executeExpression);
25 } 25 }
26 26
27 executeExpression(); 27 executeExpression();
28 } 28 }
29 </script> 29 </script>
30 </head> 30 </head>
31 <body onload="runTest()"> 31 <body onload="runTest()">
32 <p>Tests that command-line API methods behave similarly to native code by re turning '[WebInspector console function]' via toString().</p> 32 <p>Tests that command-line API methods behave similarly to native code by re turning '[WebInspector console function]' via toString().</p>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-native-function-to-string-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698