Closed Bug 405739 Opened 17 years ago Closed 16 years ago

write more history autocomplete tests

Categories

(Toolkit :: Places, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9

People

(Reporter: moco, Unassigned)

References

()

Details

write more history autocomplete tests

we can use http://lxr.mozilla.org/seamonkey/source/toolkit/components/places/tests/unit/test_history_autocomplete_tags.js as a template

we're planning some changes to our autocomplete algorithm (for both performance and global frecency), so it would be good to have some tests in places.

right now we could test things like:

1)  tags come first
2)  within a chunk of time, we do typed, then visit_count, then max visit date (see http://lxr.mozilla.org/seamonkey/source/toolkit/components/places/src/nsNavHistoryAutoComplete.cpp#121)
3)  that non-ascii searches work
4)  that special character searching work (% and _)
5)  that bookmarked results are starred
6)  that unbookmarked (but visited) livemark feed items are not starred

and more.
http://hg.mozilla.org/mozilla-central/file/tip/toolkit/components/places/tests/autocomplete/

There's a number of autocomplete tests, while probably not totally comprehensive, each test file can covers a lot of cases, and the head_autocomplete helps simplify writing tests. :)
Status: NEW → RESOLVED
Closed: 16 years ago
Product: Firefox → Toolkit
QA Contact: places → places
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
You need to log in before you can comment on or make changes to this bug.