зеркало из https://github.com/mozilla/gecko-dev.git
Backed out 1 changesets (bug 1184220) for test failures in browser_searchbar_keyboard_navigation.js
Backed out changeset c3f13feea4cd (bug 1184220)
This commit is contained in:
Родитель
2480c86193
Коммит
a3ef995872
|
@ -1143,10 +1143,6 @@
|
|||
let isOneOffSelected =
|
||||
this.selectedButton &&
|
||||
this.selectedButton.classList.contains("searchbar-engine-one-off-item");
|
||||
// Typing de-selects the settings or opensearch buttons at the bottom
|
||||
// of the search panel, as typing shows the user intends to search.
|
||||
if (this.selectedButton && !isOneOffSelected)
|
||||
this.selectedButton = null;
|
||||
if (textbox.value) {
|
||||
self.removeAttribute("showonlysettings");
|
||||
groupText = headerSearchText.previousSibling.value +
|
||||
|
|
|
@ -152,23 +152,6 @@ add_task(function* test_arrows() {
|
|||
"the textfield value should be back to initial value");
|
||||
});
|
||||
|
||||
add_task(function* test_typing_clears_button_selection() {
|
||||
is(Services.focus.focusedElement, textbox.inputField,
|
||||
"the search bar should be focused"); // from the previous test.
|
||||
ok(!textbox.selectedButton, "no button should be selected");
|
||||
|
||||
EventUtils.synthesizeKey("VK_UP", {});
|
||||
is(textbox.selectedButton.getAttribute("anonid"), "search-settings",
|
||||
"the settings item should be selected");
|
||||
|
||||
// Type a character.
|
||||
EventUtils.synthesizeKey("a", {});
|
||||
ok(!textbox.selectedButton, "the settings item should be de-selected");
|
||||
|
||||
// Remove the character.
|
||||
EventUtils.synthesizeKey("VK_BACK_SPACE", {});
|
||||
});
|
||||
|
||||
add_task(function* test_tab() {
|
||||
is(Services.focus.focusedElement, textbox.inputField,
|
||||
"the search bar should be focused"); // from the previous test.
|
||||
|
|
Загрузка…
Ссылка в новой задаче