Changes

Jump to: navigation, search

Contribute to Private Browsing Tests

762 bytes added, 15:06, 5 October 2008
m
History Unit Test Notes
=== History Unit Test Notes===
* [[User:AaronMT|AaronMT]] 20:06, 5 October 2008 (UTC)
** Function performs a query on items Places items
{|class="collapsible" style="background: #c0c0c0" width="80%"
!test_248970_history - check_placesItemCount()
|-
| <pre>/**
* Function performs a really simple query on our places entries,
* and makes sure that the number of entries equal num_places_entries.
*
* @returns nothing
*/
function check_placesItem_Count(){
var options = histsvc.getNewQueryOptions();
options.includeHidden = true;
var query = histsvc.getNewQuery();
var result = histsvc.executeQuery(query, options);
var root = result.root;
root.containerOpen = true;
var cc = root.childCount;
do_check_true(cc==num_places_entries);
root.containerOpen = false;
}</pre>
 
|}
* [[User:AaronMT|AaronMT]] 00:41, 27 September 2008 (UTC)
** Using a Mozilla function that checks to see if a URI exists in a database.
1
edit

Navigation menu