Name Description Size Coverage
head_queries.js import-globals-from ../head_common.js 11389 -
readme.txt These are tests specific to the Places Query API. 801 -
test_async.js Instances of this class become the prototypes of the test objects above. Each test can therefore use the methods of this class, or they can override them if they want. To run a test, call setup() and then run(). 12173 -
test_bookmarks.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3652 -
test_containersQueries_sorting.js Testing behavior of bug 473157 "Want to sort history in container view without sorting the containers" and regression bug 488783 Tags list no longer sorted (alphabetized). This test is for global testing sorting containers queries. 15837 -
test_downloadHistory_liveUpdate.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4402 -
test_excludeQueries.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3447 -
test_history_queries_tags_liveUpdate.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4233 -
test_history_queries_titles_liveUpdate.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 6582 -
test_options_inherit.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3391 -
test_query_uri_liveupdate.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1366 -
test_queryMultipleFolder.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3499 -
test_querySerialization.js Tests Places query serialization. Associated bug is https://bugzilla.mozilla.org/show_bug.cgi?id=370197 The simple idea behind this test is to try out different combinations of query switches and ensure that queries are the same before serialization as they are after de-serialization. In the code below, "switch" refers to a query option -- "option" in a broad sense, not nsINavHistoryQueryOptions specifically (which is why we refer to them as switches, not options). Both nsINavHistoryQuery and nsINavHistoryQueryOptions allow you to specify switches that affect query strings. nsINavHistoryQuery instances have attributes hasBeginTime, hasEndTime, hasSearchTerms, and so on. nsINavHistoryQueryOptions instances have attributes sortingMode, resultType, excludeItems, etc. Ideally we would like to test all 2^N subsets of switches, where N is the total number of switches; switches might interact in erroneous or other ways we do not expect. However, since N is large (21 at this time), that's impractical for a single test in a suite. Instead we choose all possible subsets of a certain, smaller size. In fact we begin by choosing CHOOSE_HOW_MANY_SWITCHES_LO and ramp up to CHOOSE_HOW_MANY_SWITCHES_HI. There are two more wrinkles. First, for some switches we'd like to be able to test multiple values. For example, it seems like a good idea to test both an empty string and a non-empty string for switch nsINavHistoryQuery.searchTerms. When switches have more than one value for a test run, we use the Cartesian product of their values to generate all possible combinations of values. To summarize, here's how this test works: - For n = CHOOSE_HOW_MANY_SWITCHES_LO to CHOOSE_HOW_MANY_SWITCHES_HI: - From the total set of switches choose all possible subsets of size n. For each of those subsets s: - Collect the test runs of each switch in subset s and take their Cartesian product. For each sequence in the product: - Create nsINavHistoryQuery and nsINavHistoryQueryOptions objects with the chosen switches and test run values. - Serialize the query. - De-serialize and ensure that the de-serialized query objects equal the originals. 22769 -
test_redirects.js Takes a sequence of query options, and compare query results obtained through them with a custom filtered array of visits, based on the values we are expecting from the query. @param {[boolean, number, nsINavHistoryQueryOptions.SortByType]} aSequence an array that contains query options in the form: [includeHidden, maxResults, sortingMode] 11280 -
test_result_observeHistoryDetails.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4806 -
test_results-as-left-pane.js This test will test the basic RESULTS_AS_ROOTS_QUERY, that simply returns, the existing bookmark roots. 2398 -
test_results-as-roots.js This test will test the basic RESULTS_AS_ROOTS_QUERY, that simply returns, the existing bookmark roots. 3157 -
test_results-as-tag-query.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1869 -
test_results-as-visit.js This test will test Queries that use relative search terms and URI options 4063 -
test_search_tags.js 2257 -
test_searchterms-bookmarklets.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1803 -
test_searchterms-domain.js This test will test Queries that use relative search terms and domain options 5158 -
test_searchterms-uri.js This test will test Queries that use relative search terms and URI options 3304 -
test_searchTerms_includeHidden.js 1991 -
test_searchTerms_time.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3275 -
test_sort-date-site-grouping.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 6115 -
test_sorting.js 25625 -
test_tags.js Tests bookmark queries with tags. See bug 399799. 19527 -
test_transitions.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 4525 -
xpcshell.toml 925 -