QA/TDAI/Projects/Places Tests
This is the primary location for deep automated (gray and white box) testing of the Places APIs. Here is where we will endeavor to keep track of what has been added and what needs to be done. Note, for unit tests, it is not strictly necessary to update this, but it is appreciated.
Places Query API
These tests test various combinations of places query APIs. There are two query APIs: nsINavHistoryQuery and nsINavHistoryQueryOptions. They are represented in the two tables below. In order to keep things readable, we will assign an arbitrary ID number to the tests. When you add a new test, assign it the end of this list.
A test's coverage can be figured by the union of the two tables. Tests that we need are denoted by ID's of ?'s. For tests that are in-progress, please add the bug number to the "status" column and change it to "Landed" once the test lands in the tree.
Editing Notes:
- The constants for some of the values are the constants as defined in the IDL files.
- The 0 line is merely for editing purposes to make adding tests easier, please ignore it.
- The time fields can have values from 0 to 2
- The Sort_Mode can be a value from 0 to 20
- The Result_Type can be a value from 0 to 6
Test File Name | Test ID | Test Status |
---|---|---|
test_abstime-annotation-domain.js | 1 | Landed |
test_abstime-annotation-uri.js | 2 | Landed |
test_searchterms-uri.js | 3 | Landed |
TestID | BeginTime | EndTime | SearchTerms | minVisit | maxVisit | onlyBookmarked | domainIsHost | domain | uriIsPrefix | uri | annotationIsNot | annotation | Folders | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | bt | et | st | mn | mx | b | di | d | ui | u | ai | a | f | 1 | 0 | 0 | X | X | X | X | X |
TestID | SORT_MODE(s) | RESULT_TYPE | SortingAnnotation | excludeItems | excludeQueries | excludeROFolders | excludeItemIfParentHasAnno | expandQueries | includeHidden | showSessions | maxResults | queryType |
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | s | r | sa | ei | eq | ero | ep | exq | ih | ss | mr | qt |
1 | 5 | 0 | X |