Bug 1288840 - Use the private phishing site list in official build. r=francois
MozReview-Commit-ID: 3SYoP2z1jWb
This commit is contained in:
@@ -5,8 +5,9 @@ function run_test() {
|
||||
// Test list name to threat type conversion.
|
||||
|
||||
equal(urlUtils.convertListNameToThreatType("goog-malware-proto"), 1);
|
||||
equal(urlUtils.convertListNameToThreatType("goog-phish-proto"), 2);
|
||||
equal(urlUtils.convertListNameToThreatType("googpub-phish-proto"), 2);
|
||||
equal(urlUtils.convertListNameToThreatType("goog-unwanted-proto"), 3);
|
||||
equal(urlUtils.convertListNameToThreatType("goog-phish-proto"), 5);
|
||||
|
||||
try {
|
||||
urlUtils.convertListNameToThreatType("bad-list-name");
|
||||
@@ -20,8 +21,9 @@ function run_test() {
|
||||
|
||||
// Test threat type to list name conversion.
|
||||
equal(urlUtils.convertThreatTypeToListName(1), "goog-malware-proto");
|
||||
equal(urlUtils.convertThreatTypeToListName(2), "goog-phish-proto");
|
||||
equal(urlUtils.convertThreatTypeToListName(2), "googpub-phish-proto");
|
||||
equal(urlUtils.convertThreatTypeToListName(3), "goog-unwanted-proto");
|
||||
equal(urlUtils.convertThreatTypeToListName(5), "goog-phish-proto");
|
||||
|
||||
try {
|
||||
urlUtils.convertThreatTypeToListName(0);
|
||||
|
||||
Reference in New Issue
Block a user