| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="./inspector-protocol-test.js"></script> | 3 <script type="text/javascript" src="./resources/inspector-protocol-test.js"></sc
ript> |
| 4 <script> | 4 <script> |
| 5 function test() | 5 function test() |
| 6 { | 6 { |
| 7 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "window.f
rames[0]" }) | 7 InspectorTest.sendCommandPromise("Runtime.evaluate", { expression: "window.f
rames[0]" }) |
| 8 .then((message) => InspectorTest.sendCommandPromise("Runtime.getProperti
es", { objectId: message.result.result.objectId })) | 8 .then((message) => InspectorTest.sendCommandPromise("Runtime.getProperti
es", { objectId: message.result.result.objectId })) |
| 9 .then(() => InspectorTest.completeTest()); | 9 .then(() => InspectorTest.completeTest()); |
| 10 } | 10 } |
| 11 </script> | 11 </script> |
| 12 </head> | 12 </head> |
| 13 <body> | 13 <body> |
| 14 Tests that Runtime.getProperties doesn't crash on window.frames[0]. Should not c
rash. | 14 Tests that Runtime.getProperties doesn't crash on window.frames[0]. Should not c
rash. |
| 15 <iframe src="data:text/plain, <b>bold</b>" onload="runTest()"></iframe> | 15 <iframe src="data:text/plain, <b>bold</b>" onload="runTest()"></iframe> |
| 16 </body> | 16 </body> |
| 17 </html> | 17 </html> |
| 18 | 18 |
| OLD | NEW |