Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | |
| 5 <script> | |
| 6 | |
| 7 function logSymbolToConsole() | |
| 8 { | |
| 9 var smb = Symbol(); | |
| 10 console.log(smb); | |
| 11 smb = Symbol("a"); | |
| 12 console.log(smb); | |
| 13 } | |
| 14 | |
| 15 function logSymbolToConsoleWithError() | |
| 16 { | |
| 17 Symbol.prototype.toString = function (arg) { throw new Error(); }; | |
| 18 var smb = Symbol(); | |
| 19 console.log(smb); | |
| 20 } | |
| 21 | |
| 22 function test() | |
|
aandrey
2014/05/26 11:01:42
can you take inspector/console/console-format.html
Alexandra Mikhaylova
2014/05/27 12:41:37
Done.
| |
| 23 { | |
| 24 InspectorTest.evaluateInPage("logSymbolToConsole()", step1); | |
| 25 | |
| 26 function step1() | |
| 27 { | |
| 28 InspectorTest.evaluateInPage("logSymbolToConsoleWithError()", complete); | |
| 29 } | |
| 30 | |
| 31 function complete() | |
| 32 { | |
| 33 InspectorTest.dumpConsoleMessages(); | |
| 34 InspectorTest.completeTest(); | |
| 35 } | |
| 36 } | |
| 37 </script> | |
| 38 </head> | |
| 39 | |
| 40 <body onload="runTest()"> | |
| 41 <p> | |
| 42 Tests that console properly displays information about ES6 Symbols. | |
| 43 </p> | |
| 44 </body> | |
| 45 </html> | |
| OLD | NEW |