| 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);
|
| }
|
| },
|
|
|