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 |
test_historyignorequery.js | 4 | bug 419779 |
test_simple-anno-crash.js | 5 | bug 424038 |
test_searchterms-utf8-domain.js | 6 | bug 424041 |
test_visits-reldate-annotation.js | 7 | bug 424050 |
test_onlybookmark-tags-unified.js | 8 | bug 425726 |
test_bookmark-searchterms.js | 9 | bug 425809 |
test_bookmark-resultsasuri-tags.js | 10 | bug 425842 |
test_bookmark-exclude-annotation-folders.js | 11 | In Progress (depends on bug 430862) |
test_searchterms-domain.js | 12 | Landing in bug 432723 |
test_bookmark-ro-folder.js | 13 | bug 430862 |
test_bookmarks-kitchensink.js | 14 | bug 431616 |
test_415716.js | 15 | bug 415716 and landing in bug 432723 |
test_results-as-visit.js | 16 | Landing in bug 432723 |
test_results-as-tag-query.js | 17 | bug 431431 |
test_results-as-tag-contents-query | 18 | bug 431798 |
test_results-as-site-query.js | 19 | bug 431679 |
test_results-as-date-site-query.js | 20 | bug 431670 |
test_results-as-date-query.js | 21 | bug 431670 |
test_results-as-bookmark-error.js | 22 | bug 428591 |
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 | ||||||
2 | 0 | 0 | X | X | X | X | X | ||||||
3 | X | X | X | ||||||||||
4 | X | X | X | ||||||||||
5 | X | ||||||||||||
6 | X | X | X | ||||||||||
7 | 1 | 1 | X | X | X | ||||||||
8 | X | X | X | ||||||||||
9 | X | ||||||||||||
10 | X | X | X | ||||||||||
11 | 1 | 1 | X | X | X | X | |||||||
12 | X | X | X | ||||||||||
13 | X | ||||||||||||
14 | 2 | 2 | X | X | X | X | X | X | X | ||||
15 | 2 | 2 | X | X | X | ||||||||
16 | X | X | |||||||||||
17 | X | X | |||||||||||
18 | X | X | X | ||||||||||
19 | X | ||||||||||||
20 | X | X | |||||||||||
21 | 2 | 2 | |||||||||||
22 |
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 | |||||||||
2 | 5 | 0 | X | |||||||||
3 | 3 | 0 | ||||||||||
4 | 5 | 0 | X | |||||||||
5 | 19 | 1 | ||||||||||
6 | 6 | 0 | ||||||||||
7 | 3 | 1 | ||||||||||
8 | 1 | 0 | 2 | |||||||||
9 | 1 | 0 | 1 | |||||||||
10 | 1 | 0 | X | X | X | 1 | ||||||
11 | 1 | 6 | X | X | X | X | X | 1 | ||||
12 | 3 | 0 | ||||||||||
13 | X | X | ||||||||||
14 | 17 | 0 | X | X | X | 1 | ||||||
15 | 4 | 1 | ||||||||||
16 | 7 | 1 | ||||||||||
17 | 17 | 6 | ||||||||||
18 | 17 | 7 | ||||||||||
19 | 3 | 4 | ||||||||||
20 | 3 | 5 | ||||||||||
21 | 1 | 3 | ||||||||||
22 | 1 | * |