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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html

Issue 2356423002: [DevTools] Turn WebInspector.Panel into a web component.
Patch Set: partial fixes Created 4 years, 3 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/sources/autocomplete-general.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html b/third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html
index 04b3b49ddafa82e63c14901067b190021e82ee2d..67557de0f1748792279ef7b3c9274ffaf3bf9f24 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/autocomplete-general.html
@@ -32,7 +32,10 @@ function test()
InspectorTest.typeIn(textEditor, "m");
function onAutocompletionSuggestBox()
{
- document.activeElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
+ var root = textEditor.element;
+ while (root && root.nodeType !== Node.DOCUMENT_FRAGMENT_NODE)
+ root = root.parentNode;
+ (root || document).activeElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
dumpDictionary(next);
}
},

Powered by Google App Engine
This is Rietveld 408576698