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-tests.js"></script> | 4 <script src="../http/tests/inspector/console-tests.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 // Global Values | 7 // Global Values |
8 var globals = []; | 8 var globals = []; |
9 | 9 |
10 function doit() | 10 function doit() |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 | 74 |
75 function frontend_evalExpression(expression) | 75 function frontend_evalExpression(expression) |
76 { | 76 { |
77 var self = WebInspector.console; | 77 var self = WebInspector.console; |
78 function printResult(result) | 78 function printResult(result) |
79 { | 79 { |
80 self.addMessage(new WebInspector.ConsoleCommandResult(result, expression
)); | 80 self.addMessage(new WebInspector.ConsoleCommandResult(result, expression
)); |
81 } | 81 } |
82 | 82 |
83 self.evalInInspectedWindow(expression, "console", printResult); | 83 self.evalInInspectedWindow(expression, "console", false, printResult); |
84 } | 84 } |
85 | 85 |
86 </script> | 86 </script> |
87 </head> | 87 </head> |
88 | 88 |
89 <body onload="onload()"> | 89 <body onload="onload()"> |
90 <div id="x"></div> | 90 <div id="x"></div> |
91 <p> | 91 <p> |
92 Tests that console logging dumps proper messages. | 92 Tests that console logging dumps proper messages. |
93 </p> | 93 </p> |
94 | 94 |
95 </body> | 95 </body> |
96 </html> | 96 </html> |
OLD | NEW |