Bug 722979 - Update test in accordance with STS API changes.
☠☠ backed out by a620669085ef ☠ ☠
authorJosh Matthews <josh@joshmatthews.net>
Fri, 16 Nov 2012 14:48:08 +0000
changeset 113496 e123e01731854db1aefd2b375e2385226c998bab
parent 113495 3c670e3e298f8e0bc3bb3faac73a7d5682292073
child 113497 a620669085ef854488c387d21c05324241e78c97
push id18187
push userjosh@joshmatthews.net
push dateFri, 16 Nov 2012 14:48:24 +0000
treeherdermozilla-inbound@e123e0173185 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs722979
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 722979 - Update test in accordance with STS API changes.
security/manager/ssl/tests/unit/test_sts_preloadlist_selfdestruct.js
--- a/security/manager/ssl/tests/unit/test_sts_preloadlist_selfdestruct.js
+++ b/security/manager/ssl/tests/unit/test_sts_preloadlist_selfdestruct.js
@@ -4,21 +4,21 @@ var Cu = Components.utils;
 
 Cu.import("resource://gre/modules/Services.jsm");
 
 function run_test() {
   let STSService = Cc["@mozilla.org/stsservice;1"]
                      .getService(Ci.nsIStrictTransportSecurityService);
 
   // check that a host on the preload list is identified as an sts host
-  do_check_true(STSService.isStsHost("alpha.irccloud.com"));
+  do_check_true(STSService.isStsHost("alpha.irccloud.com", 0));
 
   // now simulate that it's 19 weeks later than it actually is
   let offsetSeconds = 19 * 7 * 24 * 60 * 60;
   Services.prefs.setIntPref("test.currentTimeOffsetSeconds", offsetSeconds);
 
   // check that the preloaded host is no longer considered sts
-  do_check_false(STSService.isStsHost("alpha.irccloud.com"));
+  do_check_false(STSService.isStsHost("alpha.irccloud.com", 0));
 
   // just make sure we can get everything back to normal
   Services.prefs.clearUserPref("test.currentTimeOffsetSeconds");
-  do_check_true(STSService.isStsHost("alpha.irccloud.com"));
+  do_check_true(STSService.isStsHost("alpha.irccloud.com", 0));
 }