зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1171723 - Fix clear button in variable view. r=bgrins
This commit is contained in:
Родитель
8f0b7e0738
Коммит
57d8b2b908
|
@ -98,6 +98,7 @@ function testVariablesAndPropertiesFiltering() {
|
||||||
function firstFilter() {
|
function firstFilter() {
|
||||||
let expanded = once(gVariables, "fetched");
|
let expanded = once(gVariables, "fetched");
|
||||||
typeText(gSearchBox, "constructor");
|
typeText(gSearchBox, "constructor");
|
||||||
|
gSearchBox.doCommand();
|
||||||
return expanded.then(testFiltered);
|
return expanded.then(testFiltered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,7 @@ function testVariablesAndPropertiesFiltering() {
|
||||||
function firstFilter() {
|
function firstFilter() {
|
||||||
let expanded = once(gVariables, "fetched");
|
let expanded = once(gVariables, "fetched");
|
||||||
typeText(gSearchBox, "\"Function\"");
|
typeText(gSearchBox, "\"Function\"");
|
||||||
|
gSearchBox.doCommand();
|
||||||
return expanded.then(testFiltered);
|
return expanded.then(testFiltered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -139,6 +140,7 @@ function testVariablesAndPropertiesFiltering() {
|
||||||
backspaceText(gSearchBox, 10);
|
backspaceText(gSearchBox, 10);
|
||||||
let expanded = once(gVariables, "fetched");
|
let expanded = once(gVariables, "fetched");
|
||||||
typeText(gSearchBox, "\"Function\"");
|
typeText(gSearchBox, "\"Function\"");
|
||||||
|
gSearchBox.doCommand();
|
||||||
expanded.then(testFiltered);
|
expanded.then(testFiltered);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -453,7 +453,7 @@ VariablesView.prototype = {
|
||||||
searchbox.setAttribute("placeholder", this._searchboxPlaceholder);
|
searchbox.setAttribute("placeholder", this._searchboxPlaceholder);
|
||||||
searchbox.setAttribute("type", "search");
|
searchbox.setAttribute("type", "search");
|
||||||
searchbox.setAttribute("flex", "1");
|
searchbox.setAttribute("flex", "1");
|
||||||
searchbox.addEventListener("input", this._onSearchboxInput, false);
|
searchbox.addEventListener("command", this._onSearchboxInput, false);
|
||||||
searchbox.addEventListener("keypress", this._onSearchboxKeyPress, false);
|
searchbox.addEventListener("keypress", this._onSearchboxKeyPress, false);
|
||||||
|
|
||||||
container.appendChild(searchbox);
|
container.appendChild(searchbox);
|
||||||
|
@ -470,7 +470,7 @@ VariablesView.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this._searchboxContainer.remove();
|
this._searchboxContainer.remove();
|
||||||
this._searchboxNode.removeEventListener("input", this._onSearchboxInput, false);
|
this._searchboxNode.removeEventListener("command", this._onSearchboxInput, false);
|
||||||
this._searchboxNode.removeEventListener("keypress", this._onSearchboxKeyPress, false);
|
this._searchboxNode.removeEventListener("keypress", this._onSearchboxKeyPress, false);
|
||||||
|
|
||||||
this._searchboxContainer = null;
|
this._searchboxContainer = null;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче