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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/page/frameStartedLoading.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 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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698