Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/page/frameScheduledNavigation.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script>
5
6 function load()
7 {
8 document.querySelector("iframe").src = "../resources/blank.html";
9 }
10
11 function test()
12 {
13 InspectorTest.eventHandler["Page.frameScheduledNavigation"] = onScheduled;
14 InspectorTest.eventHandler["Page.frameStartedLoading"] = onStarted;
15 InspectorTest.eventHandler["Page.frameClearedScheduledNavigation"] = onClear ed;
16 InspectorTest.sendCommand("Page.enable", {});
17
18 function onScheduled(msg)
19 {
20 InspectorTest.log("Scheduled navigation with delay " + msg.params.delay) ;
21 }
22
23 function onStarted(msg)
24 {
25 // This event should be received before the scheduled navigation is clea red.
26 InspectorTest.log("Started loading");
27 }
28
29 function onCleared(msg)
30 {
31 InspectorTest.log("Cleared scheduled navigation");
32 InspectorTest.completeTest();
33 }
34
35 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "load()" });
36 }
37
38 </script>
39 </head>
40 <body onload="runTest()">
41 <iframe>
42 </body>
43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698