Bug 1470455 - Add the 'expected' arguments to throws/rejects for security/manager/ssl/tests/unit/test_sts_parser.js. r?keeler
MozReview-Commit-ID: 7eXMuESG1nF
--- a/security/manager/ssl/tests/unit/test_sts_parser.js
+++ b/security/manager/ssl/tests/unit/test_sts_parser.js
@@ -29,17 +29,17 @@ function testFailure(header) {
let dummyUri = Services.io.newURI("https://foo.com/bar.html");
let maxAge = {};
let includeSubdomains = {};
throws(() => {
sss.processHeader(Ci.nsISiteSecurityService.HEADER_HSTS, dummyUri, header,
sslStatus, 0, sss.SOURCE_ORGANIC_REQUEST, {}, maxAge,
includeSubdomains);
- }, "Parsed invalid header: " + header);
+ }, /NS_ERROR_FAILURE/, "Parsed invalid header: " + header);
}
function run_test() {
// SHOULD SUCCEED:
testSuccess("max-age=100", 100, false);
testSuccess("max-age =100", 100, false);
testSuccess(" max-age=100", 100, false);
testSuccess("max-age = 100 ", 100, false);