| 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 var str = " \uD835\uDC14\uD835\uDC0D\uD835\uDC08\uD835\uDC02\uD835\uDC0E\uD835\
uDC03\uD835\uDC04"; // " UNICODE" | 7 var str = " \uD835\uDC14\uD835\uDC0D\uD835\uDC08\uD835\uDC02\uD835\uDC0E\uD835\
uDC03\uD835\uDC04"; // " UNICODE" |
| 8 var brokenSurrogate = str.substring(0, str.length - 1); | 8 var brokenSurrogate = str.substring(0, str.length - 1); |
| 9 var obj = { foo: brokenSurrogate }; | 9 var obj = { foo: brokenSurrogate }; |
| 10 obj[brokenSurrogate] = "foo"; | 10 obj[brokenSurrogate] = "foo"; |
| 11 | 11 |
| 12 function test() | 12 function test() |
| 13 { | 13 { |
| 14 InspectorTest.evaluateInConsole("obj"); | 14 InspectorTest.evaluateInConsole("obj"); |
| 15 InspectorTest.evaluateInConsole("[obj]"); | 15 InspectorTest.evaluateInConsole("[obj]"); |
| 16 InspectorTest.evaluateInConsole("obj.foo"); | 16 InspectorTest.evaluateInConsole("obj.foo"); |
| 17 InspectorTest.evaluateInConsole("[obj.foo]"); | 17 InspectorTest.evaluateInConsole("[obj.foo]"); |
| 18 InspectorTest.runAfterPendingDispatches(step1); | 18 InspectorTest.deprecatedRunAfterPendingDispatches(step1); |
| 19 | 19 |
| 20 function step1() | 20 function step1() |
| 21 { | 21 { |
| 22 InspectorTest.waitForRemoteObjectsConsoleMessages(step2); | 22 InspectorTest.waitForRemoteObjectsConsoleMessages(step2); |
| 23 } | 23 } |
| 24 | 24 |
| 25 function step2() | 25 function step2() |
| 26 { | 26 { |
| 27 InspectorTest.expandConsoleMessages(step3); | 27 InspectorTest.expandConsoleMessages(step3); |
| 28 } | 28 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 </script> | 62 </script> |
| 63 </head> | 63 </head> |
| 64 | 64 |
| 65 <body onload="runTest()"> | 65 <body onload="runTest()"> |
| 66 <p> | 66 <p> |
| 67 Tests that console logging dumps proper messages with broken Unicode. | 67 Tests that console logging dumps proper messages with broken Unicode. |
| 68 </p> | 68 </p> |
| 69 | 69 |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |