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:
Joe Walker 2010-12-09 15:18:26 -05:00
Родитель 062626b53e
Коммит ca11e49472
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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();
}