OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> | |
4 <script> | |
5 | |
6 function load() | |
7 { | |
8 var frame = document.createElement("iframe"); | |
9 frame.src = "../resources/blank.html"; | |
10 document.body.appendChild(frame); | |
11 } | |
12 | |
13 function test() | |
14 { | |
15 InspectorTest.eventHandler["Page.frameStartedLoading"] = onStart; | |
16 InspectorTest.eventHandler["Page.frameStoppedLoading"] = onStop; | |
17 InspectorTest.sendCommand("Page.enable", {}); | |
18 | |
19 function onStart() | |
20 { | |
21 InspectorTest.log("Started loading"); | |
22 } | |
23 function onStop() | |
24 { | |
25 InspectorTest.log("Stopped loading"); | |
26 InspectorTest.completeTest(); | |
27 } | |
28 | |
29 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "load()" }); | |
30 } | |
31 | |
32 </script> | |
33 </head> | |
34 <body onload="runTest()"> | |
35 </body> | |
36 </html> | |
OLD | NEW |