3 <script type=
"text/javascript" src=
"../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
8 document
.querySelector("iframe").src
= "../resources/blank.html";
13 InspectorTest
.eventHandler
["Page.frameScheduledNavigation"] = onScheduled
;
14 InspectorTest
.eventHandler
["Page.frameStartedLoading"] = onStarted
;
15 InspectorTest
.eventHandler
["Page.frameClearedScheduledNavigation"] = onCleared
;
16 InspectorTest
.sendCommand("Page.enable", {});
18 function onScheduled(msg
)
20 InspectorTest
.log("Scheduled navigation with delay " + msg
.params
.delay
);
23 function onStarted(msg
)
25 // This event should be received before the scheduled navigation is cleared.
26 InspectorTest
.log("Started loading");
29 function onCleared(msg
)
31 InspectorTest
.log("Cleared scheduled navigation");
32 InspectorTest
.completeTest();
35 InspectorTest
.sendCommand("Runtime.evaluate", { "expression": "load()" });
40 <body onload=
"runTest()">