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> | 5 <script> |
6 | 6 |
7 function a() | 7 function logSymbolToConsoleWithError() |
8 { | 8 { |
9 console.trace(1, 2, 3); | 9 Symbol.prototype.toString = function (arg) { throw new Error(); }; |
| 10 var smb = Symbol(); |
| 11 console.log(smb); |
10 } | 12 } |
11 | 13 |
12 function test() | 14 function test() |
13 { | 15 { |
14 function callback() | 16 InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete); |
| 17 |
| 18 function complete() |
15 { | 19 { |
16 InspectorTest.dumpConsoleMessages(); | 20 InspectorTest.dumpConsoleMessages(); |
17 InspectorTest.completeTest(); | 21 InspectorTest.completeTest(); |
18 } | 22 } |
19 InspectorTest.evaluateInPage("setTimeout(a, 0)"); | |
20 InspectorTest.addConsoleSniffer(callback); | |
21 } | 23 } |
22 | |
23 </script> | 24 </script> |
24 </head> | 25 </head> |
25 | 26 |
26 <body onload="runTest()"> | 27 <body onload="runTest()"> |
27 <p> | 28 <p> |
28 Tests that console.trace dumps arguments alongside the stack trace. | 29 Tests that console properly displays information about ES6 Symbols. |
29 </p> | 30 </p> |
30 | |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |