зеркало из https://github.com/mozilla/gecko-dev.git
Bug 617877: Web console code completion suggestion sticks around when it shouldn't, r+a=gavin
--HG-- extra : rebase_source : 0a48fee5a403abe4b48e79360e280149c3bb5782
This commit is contained in:
Родитель
062626b53e
Коммит
ca11e49472
|
@ -4249,6 +4249,7 @@ JSTerm.prototype = {
|
|||
setInputValue: function JST_setInputValue(aNewValue)
|
||||
{
|
||||
this.inputNode.value = aNewValue;
|
||||
this.completeNode.value = "";
|
||||
this.resizeInput();
|
||||
},
|
||||
|
||||
|
|
|
@ -94,6 +94,12 @@ function testCompletion() {
|
|||
jsterm.clearOutput();
|
||||
jsterm.history.splice(0); // workaround for bug 592552
|
||||
|
||||
input.value = "docu";
|
||||
jsterm.complete(jsterm.COMPLETE_HINT_ONLY);
|
||||
is(jsterm.completeNode.value, " ment", "'docu' completion");
|
||||
jsterm.execute();
|
||||
is(jsterm.completeNode.value, "", "clear completion on execute()");
|
||||
|
||||
HUD = jsterm = input = null;
|
||||
finishTest();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче