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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.html b/third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.html
deleted file mode 100644
index f6621af7e73b376476bee4ab486578fc86befbb1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/timeline/page-frames.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<head>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script type="text/javascript" src="../../http/tests/inspector-protocol/tracing-test.js"></script>
-<script>
-function performActions()
-{
- var frame1 = document.createElement("iframe");
- frame1.name = "Frame No. 1";
- document.body.appendChild(frame1);
- frame1.contentWindow.document.write("console.log('frame2')");
-
- var frame2 = document.createElement("iframe");
- frame2.src = "../resources/blank.html";
- document.body.appendChild(frame2);
-
- return new Promise(fulfill => { frame2.addEventListener("load", fulfill, false) });
-}
-
-function test()
-{
- InspectorTest.invokeAsyncWithTracing("performActions", finish);
-
- function finish(devtoolsEvents, data)
- {
- InspectorTest.log("Frames in TracingStartedInPage");
- var tracingStarted = InspectorTest.findEvent("TracingStartedInPage", "I");
- for (var frame of tracingStarted.args["data"]["frames"] || [])
- dumpFrame(frame);
-
- InspectorTest.log("Frames in CommitLoad events");
- var commitLoads = InspectorTest.findEvents("CommitLoad", "X");
- for (var event of commitLoads)
- dumpFrame(event.args["data"]);
- InspectorTest.completeTest();
- }
-
- function dumpFrame(frame)
- {
- var url = frame.url.replace(/.*\/(([^/]*\/){2}[^/]*$)/, "$1");
- InspectorTest.log(`url: ${url} name: ${frame.name} parent: ${typeof frame.parent} nodeId: ${typeof frame.nodeId}`);
- }
-}
-</script>
-</head>
-<body onLoad="runTest();">
-<iframe src="data:text/html,<script>window.foo = 42</script>" name="frame0"></iframe>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698