/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
// Search with an additional character. As the input matches a keyword, the // completion should equal the keyword and not the URI as before.
context = createContext("moz", { isPrivate: false });
await check_results({
context,
matches: [
makeKeywordSearchResult(context, {
uri: "http://mozilla.com/",
title: "http://mozilla.com",
keyword: "moz",
heuristic: true,
}),
makeVisitResult(context, {
uri: "http://mozilla.org/test/",
title: "test visit for http://mozilla.org/test/",
}),
],
});
// Search with an additional character. The input doesn't match a keyword // anymore, it should be autofilled.
context = createContext("mozi", { isPrivate: false });
await check_results({
context,
autofilled: "mozilla.com/",
completed: "http://mozilla.com/",
matches: [
makeVisitResult(context, {
uri: "http://mozilla.com/",
title: "A bookmark",
heuristic: true,
}),
makeVisitResult(context, {
uri: "http://mozilla.org/test/",
title: "test visit for http://mozilla.org/test/",
}),
],
});
await cleanupPlaces();
});
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.