test_autocomplete_with_composition_on_input.html is too slow
Categories
(Toolkit :: Autocomplete, defect, P1)
Tracking
()
People
(Reporter: masayuki, Assigned: masayuki)
Details
(Keywords: inputmethod)
Attachments
(1 file)
The test takes a couple of minutes or more because of wrong condition here:
https://searchfox.org/mozilla-central/rev/a5da23c8c9c1151dcdf0ca34b3cfd0a4d0fc3b48/toolkit/content/tests/chrome/file_autocomplete_with_composition.js#79-82
waitForCondition(() => {
this._controller.searchStatus >=
Ci.nsIAutoCompleteController.STATUS_COMPLETE_NO_MATCH;
}, this._checkResult.bind(this));
nsIAutoCompleteController.searchStatus may be other values because nsAutoCompleteController::StartSearch() does not reset the state. I think that this can be != Ci.nsIAutoCompleteController.STATUS_SEARCHING.
(I think that it's too risky to update mSearchStatus with composition state change because it may not represent the state in some cases, e.g., even if StopSearch() is called, it may be set to STATUS_COMPLETE_* or stay STATUS_NONE, so, it's hard to use the value in some cases.)
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
Oh, and also the arrow function never returns true because it does not have return statement even though wrapping with {}...
| Assignee | ||
Comment 2•2 years ago
|
||
| Assignee | ||
Comment 3•2 years ago
|
||
nsAutoCompleteController::mSearchStatus may be STATUS_NONE,
STATUS_COMPLETE_NO_MATCH or STATUS_COMPLETE_MATCH while it temporarily
stops working due to active IME composition because it's not updated with
composition state change. From point of view of the test, the important
point is, it's not searching and won't popup the suggest list. Therefore,
it's enough to check whether the state is no STATUS_SEARCHING.
Comment 5•2 years ago
|
||
Backed out for causing high frequency failures at test_findbar.xhtml.
Backout link: https://hg.mozilla.org/integration/autoland/rev/acd49b43bfd01a05d87dc506aafc2b36f2fcb74e
Failure log: https://treeherder.mozilla.org/logviewer?job_id=421384293&repo=autoland&lineNumber=5113
| Assignee | ||
Comment 6•2 years ago
|
||
That's odd. It seems that something is not correctly reset in the test.
Comment 7•2 years ago
|
||
The severity field is not set for this bug.
:serg, could you have a look please?
For more information, please visit BugBot documentation.
Updated•2 years ago
|
Comment 8•2 years ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:masayuki, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 9•2 years ago
|
||
I still don't have much time to investigate the failure of test_findbar.xhtml which runs after the test.
Description
•