| 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 onload() | 7 function onload() |
| 8 { | 8 { |
| 9 var obj = new Object(); | 9 var obj = new Object(); |
| 10 obj["a"] = 1; | 10 obj["a"] = 1; |
| 11 obj[Symbol()] = 2; | 11 obj[Symbol()] = 2; |
| 12 obj[Symbol("a")] = 3; | 12 obj[Symbol("a")] = 3; |
| 13 obj[Symbol("a")] = Symbol.iterator; | 13 obj[Symbol("a")] = Symbol.iterator; |
| 14 obj[Symbol.iterator] = Symbol("foo"); | 14 obj[Symbol.iterator] = Symbol("foo"); |
| 15 console.dir(obj); | 15 console.dir(obj); |
| 16 | 16 |
| 17 // This used to crash in debug build. |
| 18 console.dir(Symbol()); |
| 19 |
| 17 runTest(); | 20 runTest(); |
| 18 } | 21 } |
| 19 | 22 |
| 20 function test() | 23 function test() |
| 21 { | 24 { |
| 22 InspectorTest.expandConsoleMessages(dumpConsoleMessages); | 25 InspectorTest.expandConsoleMessages(dumpConsoleMessages); |
| 23 | 26 |
| 24 function dumpConsoleMessages() | 27 function dumpConsoleMessages() |
| 25 { | 28 { |
| 26 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten
tWithLineBreaks); | 29 InspectorTest.dumpConsoleMessages(false, false, InspectorTest.textConten
tWithLineBreaks); |
| 27 InspectorTest.completeTest(); | 30 InspectorTest.completeTest(); |
| 28 } | 31 } |
| 29 } | 32 } |
| 30 | 33 |
| 31 </script> | 34 </script> |
| 32 </head> | 35 </head> |
| 33 | 36 |
| 34 <body onload="onload()"> | 37 <body onload="onload()"> |
| 35 <p> | 38 <p> |
| 36 Tests that console logging dumps proper messages. | 39 Tests that console logging dumps proper messages. |
| 37 </p> | 40 </p> |
| 38 | 41 |
| 39 </body> | 42 </body> |
| 40 </html> | 43 </html> |
| OLD | NEW |