| 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 var mainFrameId = ""; | 8 var mainFrameId = ""; |
| 9 InspectorTest.eventHandler["Runtime.executionContextCreated"] = | 9 InspectorTest.eventHandler["Runtime.executionContextCreated"] = |
| 10 function(message) { | 10 function(message) { |
| 11 if (message.params.context.auxData.frameId !== mainFrameId) | 11 if (message.params.context.auxData.frameId !== mainFrameId) |
| 12 return; | 12 return; |
| 13 if (message.params.context.auxData.isDefault === false && | 13 if (message.params.context.auxData.isDefault === false && |
| (...skipping 30 matching lines...) Expand all Loading... |
| 44 InspectorTest.sendCommandOrDie("Page.createIsolatedWorld", { | 44 InspectorTest.sendCommandOrDie("Page.createIsolatedWorld", { |
| 45 frameId: mainFrameId, worldName: "Test world"}); | 45 frameId: mainFrameId, worldName: "Test world"}); |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 </script> | 49 </script> |
| 50 </head> | 50 </head> |
| 51 <body onload="runTest()"> | 51 <body onload="runTest()"> |
| 52 </body> | 52 </body> |
| 53 </html> | 53 </html> |
| OLD | NEW |