add:   var urlsToIgnore = ["about:config", "data:,Hello%2C%20World!", "imap: "news: "moz-anno:favicon:http: "chrome: "view-source:http:  for each (var currentURL in urlsToIgnore) { var cantAddUri = uri(currentURL); add_uri_to_history(cantAddUri); do_check_false(gh.isVisited(cantAddUri)); } 
context: function run_test() {  // add a http:// uri   var uri1 = uri("http://mozilla.com");  add_uri_to_history(uri1);  do_check_true(gh.isVisited(uri1));   // add a https:// uri  var uri2 = uri("https://etrade.com");  add_uri_to_history(uri2);  do_check_true(gh.isVisited(uri2));  // add a ftp:// uri  var uri3 = uri("ftp://ftp.mozilla.org");  add_uri_to_history(uri3);  do_check_true(gh.isVisited(uri3));  // check if a non-existant uri is visited  var uri4 = uri("http://foobarcheese.com");  do_check_false(gh.isVisited(uri4));  // will fail until we fix bug #408790  // check that certain schemes never show up as visited  // even if we visit them  //var cantAddUri = uri("about:config");  //add_uri_to_history(cantAddUri);  //do_check_false(gh.isVisited(cantAddUri));  //todo, test imap, news, mailbox, moz-anno, view-source, chrome, data  //see CanAddURI() in nsNavHistory.cpp}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/f90e83d1977803a86d256da2483a2997bbc1418f/test_isvisited.js/buggy/toolkit/components/places/tests/unit/test_isvisited.js