зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1807235 - Fix test to pass in beta with different default bookmarks. r=daisuke
The test is passing in Nightly but failing in Beta because Beta has multiple default bookmarks pointing to the same domain. The test always fails when run alone, but used to pass when run with others because a previous test caused bookmarked pages frecencies to be set to -1 (recalculate). With the new frecency handling the frecencies remain valid until recalculated, and example.com is not over the minimum threshold for being autofilled by the test. By adding a temporary bookmark to it, we solve the threshold problem. Differential Revision: https://phabricator.services.mozilla.com/D165544
This commit is contained in:
Родитель
36b58f33b3
Коммит
d874834820
|
@ -58,6 +58,15 @@ add_task(async function() {
|
|||
"http://example.com/",
|
||||
"http://example.com/foo",
|
||||
]);
|
||||
// Bookmark the page so it ignores autofill threshold and doesn't risk to
|
||||
// not be autofilled.
|
||||
let bm = await PlacesUtils.bookmarks.insert({
|
||||
url: "http://example.com/",
|
||||
parentGuid: PlacesUtils.bookmarks.toolbarGuid,
|
||||
});
|
||||
registerCleanupFunction(async function() {
|
||||
await PlacesUtils.bookmarks.remove(bm);
|
||||
});
|
||||
|
||||
await test_autocomplete({
|
||||
desc: "DELETE the autofilled part should search",
|
||||
|
|
Загрузка…
Ссылка в новой задаче