B2G/gecko/toolkit/components/url-classifier/tests/unit/test_addsub.js
// Test an add of two urls to a fresh database
Test an add of two urls to a fresh database
Test an add of two urls to a fresh database
function testSimpleAdds() {
  var addUrls = [ "foo.com/a", "foo.com/b", "bar.com/c" ];
  var update = buildPhishingUpdate(
        [
          { "chunkNum" : 1,
            "urls" : addUrls
          }]);
  var assertions = {
    "tableData" : "test-phish-simple;a:1",
    "urlsExist" : addUrls
  };
  doTest([update], assertions);
}
function testSimpleAdds ( ) { var addUrls = [ "foo.com/a" , "foo.com/b" , "bar.com/c" ] ; var update = buildPhishingUpdate ( [ { "chunkNum" : 1 , "urls" : addUrls } ] ) ; var assertions = { "tableData" : "test-phish-simple;a:1" , "urlsExist" : addUrls } ; doTest ( [ update ] , assertions ) ; }
Test an add of two urls to a fresh database
Test an add of two urls to a fresh database