B2G/gecko/toolkit/components/url-classifier/tests/unit/test_streamupdater.js
// A failed network request causes the update to fail.
A failed network request causes the update to fail.
A failed network request causes the update to fail .
function testErrorUrlForward() {
  var add1Urls = [ "foo.com/a", "bar.com/c" ];
  var update = buildPhishingUpdate(
    [{ "chunkNum" : 1,
       "urls" : add1Urls }]);
  update += "u:http://test.invalid/asdf/asdf\n";  
  var assertions = {
    "tableData" : "test-phish-simple;a:1",
    "urlsExist" : add1Urls
  };
  doTest([update], assertions, false);
}
function testErrorUrlForward ( ) { var add1Urls = [ "foo.com/a" , "bar.com/c" ] ; var update = buildPhishingUpdate ( [ { "chunkNum" : 1 , "urls" : add1Urls } ] ) ; update += "u:http://test.invalid/asdf/asdf\n" ; var assertions = { "tableData" : "test-phish-simple;a:1" , "urlsExist" : add1Urls } ; doTest ( [ update ] , assertions , false ) ; }
A failed network request causes the update to fail.
A failed network request causes the update to fail .
// invalid URL scheme // The first part of the update should have succeeded