OLD | NEW |
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> |
OLD | NEW |