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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html

Issue 1668603003: Devtools: Switch JS execution context to match inspected node (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/selected-element-changes-execution-context.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html b/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html
index 707154824992b84f65bfa1b7224e91b6ab2e9396..3a9ef5ae99e680ac15685a72a50b5a2d1d70f07f 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/elements-inspect-iframe-from-different-domain.html
@@ -52,7 +52,8 @@ function test()
InspectorTest.addResult("PASS: selected node with id '" + id + "'");
else
InspectorTest.addResult("FAIL: unexpected selection " + id);
- InspectorTest.evaluateInConsole("inspect(el2)", step4);
+ // Frame was changed to the iframe. Moving back to the top frame.
+ InspectorTest.evaluateInConsole("inspect(window.frameElement.parentElement)", step4);
}
function step4()
@@ -62,6 +63,16 @@ function test()
function step5()
{
+ InspectorTest.evaluateInConsole("inspect(el2)", step6);
+ }
+
+ function step6()
+ {
+ InspectorTest.runAfterPendingDispatches(step7);
+ }
+
+ function step7()
+ {
var id = selectedNodeId();
if (id === "iframe-div")
InspectorTest.addResult("PASS: selected node with id '" + id + "'");
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/selected-element-changes-execution-context.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698