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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html

Issue 2291333002: [DevTools] Fix inspector-protocol/runtime/runtime-execution-contexts-events.html (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html
index 329f35f84ba2df5ce0f89e032acfa35714463af0..5d14ffd3096db161f58e7468ac957bc5bf22283d 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-execution-contexts-events.html
@@ -9,6 +9,7 @@ function createFrame()
frame.src = "../resources/blank.html";
frame.id = "iframe";
document.body.appendChild(frame);
+ return new Promise((resolve) => frame.onload = resolve);
}
function createCraftedFrame()
@@ -39,7 +40,8 @@ function test()
{
InspectorTest.log("Page context was created");
InspectorTest.log("Create new frame");
- InspectorTest.evaluate("createFrame()");
+ InspectorTest.sendCommandPromise("Runtime.evaluate", {expression: "createFrame()", awaitPromise: true})
+ .then(() => navigateFrame());
}
var frameExecutionContextId = 0;
@@ -48,6 +50,10 @@ function test()
{
InspectorTest.log("Frame context was created");
frameExecutionContextId = executionContextId;
+ }
+
+ function navigateFrame()
+ {
InspectorTest.log("Navigate frame");
InspectorTest.evaluate("window.frames[0].location = \"resources/runtime-events-iframe.html\"");
}
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698