mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1055670 - Re-enable removed ApplicationReputation tests. r=mmc
This commit is contained in:
parent
f6dd759e19
commit
7e4cdf3096
@ -362,6 +362,24 @@ add_task(function test_good_binary()
|
||||
fileSize: 12}, false);
|
||||
});
|
||||
|
||||
add_task(function test_disabled()
|
||||
{
|
||||
// Don't set a server, allowing only local checks.
|
||||
Services.prefs.setCharPref("browser.safebrowsing.appRepURL", "");
|
||||
let query = {sourceURI: createURI("http://example.com"),
|
||||
fileSize: 12};
|
||||
let deferred = Promise.defer();
|
||||
gAppRep.queryReputation(query,
|
||||
function onComplete(aShouldBlock, aStatus) {
|
||||
// We should be getting NS_ERROR_NOT_AVAILABLE if the service is disabled
|
||||
do_check_eq(Cr.NS_ERROR_NOT_AVAILABLE, aStatus);
|
||||
do_check_false(aShouldBlock);
|
||||
deferred.resolve(true);
|
||||
}
|
||||
);
|
||||
yield deferred.promise;
|
||||
});
|
||||
|
||||
add_task(function test_teardown()
|
||||
{
|
||||
gStillRunning = false;
|
||||
|
Loading…
Reference in New Issue
Block a user