зеркало из https://github.com/mozilla/gecko-dev.git
14f47ddcc3
The "startInputSession" test helper triggers the autocompletion logic to kick off the test. In all cases except for "testSuggestions", the search suggestions are set synchronously. Consequently, the "waitForAutocompleteResultAt" call at the end of starting the input session would find the expected suggestion item at the given index. However, in the case of "testSuggestions", the results are generated asynchronously. There is no guarantee that the results are set. The test has only been passing so far because the result items from the previous test are still cached, and cleared after a 100ms delay by: https://searchfox.org/mozilla-central/rev/a41fd8cb947266ea2e3f463fc6e31c88bfab9d41/toolkit/components/places/UnifiedComplete.js#1728 On slow test runs, the test fails intermittently when the clean-up logic runs before the test checked the suggestion item. This patch fixes the issue by splitting "startInputSession", and only use "waitForAutocompleteResultAt" after having sent the suggestions. Differential Revision: https://phabricator.services.mozilla.com/D5170 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
actors | ||
app | ||
base | ||
branding | ||
components | ||
config | ||
docs | ||
extensions | ||
fonts | ||
installer | ||
locales | ||
modules | ||
themes | ||
tools/mozscreenshots | ||
.eslintrc.js | ||
LICENSE | ||
Makefile.in | ||
app.mozbuild | ||
build.mk | ||
confvars.sh | ||
defs.mk | ||
moz.build | ||
moz.configure |