mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Backed out changeset 6cc6282c67c7 (bug 1374852) for test failures in browser_urlbarSearchSuggestions_opt-out.js
This commit is contained in:
parent
a6c141b000
commit
7815fe540b
@ -31,10 +31,6 @@ var gSearchResultsPane = {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
window.addEventListener("load", () => {
|
||||
this.searchInput.focus();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -45,10 +45,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "password";
|
||||
searchInput.doCommand();
|
||||
|
||||
@ -87,10 +84,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "password";
|
||||
searchInput.doCommand();
|
||||
|
||||
@ -147,10 +141,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "coach";
|
||||
searchInput.doCommand();
|
||||
|
||||
@ -176,10 +167,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "password";
|
||||
searchInput.doCommand();
|
||||
|
||||
@ -206,10 +194,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "site data";
|
||||
searchInput.doCommand();
|
||||
|
||||
@ -235,10 +220,7 @@ add_task(async function() {
|
||||
await openPreferencesViaOpenPreferencesAPI("paneGeneral", {leaveOpen: true});
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
let searchResultsCategory = gBrowser.contentDocument.getElementById("category-search-results");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "password";
|
||||
searchInput.doCommand();
|
||||
is(searchResultsCategory.hidden, false, "search results category should be shown");
|
||||
|
@ -27,10 +27,7 @@ add_task(async function() {
|
||||
|
||||
// Performs search.
|
||||
let searchInput = gBrowser.contentDocument.getElementById("searchInput");
|
||||
|
||||
is(searchInput, gBrowser.contentDocument.activeElement.closest("#searchInput"),
|
||||
"Search input should be focused when visiting preferences");
|
||||
|
||||
searchInput.focus();
|
||||
searchInput.value = "Create Account";
|
||||
searchInput.doCommand();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user