| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
| 4 <script> | 4 <script> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 42;" },
step2); | 8 InspectorTest.sendCommand("Runtime.evaluate", { expression: "let a = 42;" },
step2); |
| 9 | 9 |
| 10 function step2(response) | 10 function step2(response) |
| 11 { | 11 { |
| 12 failIfError(response); | 12 failIfError(response); |
| 13 InspectorTest.log("first \"let a = 1;\" result: wasThrown = " + !!respon
se.result.exceptionDetails); | 13 InspectorTest.log("first \"let a = 1;\" result: wasThrown = " + !!respon
se.result.exceptionDetails); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 InspectorTest.log("FAIL: " + JSON.stringify(response.error)); | 54 InspectorTest.log("FAIL: " + JSON.stringify(response.error)); |
| 55 } | 55 } |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 </script> | 59 </script> |
| 60 </head> | 60 </head> |
| 61 <body onload="runTest()"> | 61 <body onload="runTest()"> |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |