blob: 9cc2c6eac301f8dab743a59c68df4578edd16a85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
add_task(function*() {
let tab = yield BrowserTestUtils.openNewForegroundTab(gBrowser, "about:mozilla");
yield promiseAutocompleteResultPopup("www.mozilla.org");
gURLBar.selectTextRange(4, 4);
is(gURLBar.popup.state, "open", "Popup should be open");
is(gURLBar.popup.richlistbox.selectedIndex, 0, "Should have selected something");
EventUtils.synthesizeKey("VK_RIGHT", {});
yield promisePopupHidden(gURLBar.popup);
is(gURLBar.selectionStart, 5, "Should have moved the cursor");
is(gURLBar.selectionEnd, 5, "And not selected anything");
gBrowser.removeTab(tab);
});
|