Bug 785860 - fix sts preload list tests to skip private mode tests if private browsing service is missing - conditionally call run_next_test based on if we're in private browsing mode or not. r=bsmith

This commit is contained in:
David Keeler 2012-08-28 09:41:32 -07:00
parent 4fabe12e02
commit 0e6d868ee2

View File

@ -142,9 +142,15 @@ function test_part1() {
do_check_true(gSTSService.isStsHost("sibling.cert.se")); do_check_true(gSTSService.isStsHost("sibling.cert.se"));
do_check_false(gSTSService.isStsHost("another.subdomain.cert.se")); do_check_false(gSTSService.isStsHost("another.subdomain.cert.se"));
// test private browsing correctly interacts with removing preloaded sites // Test private browsing correctly interacts with removing preloaded sites.
if (getPBSvc()) // If we don't have the private browsing service, don't run those tests
// (which means we have to manually call run_next_test() instead of relying
// on our observer to call it).
if (getPBSvc()) {
getPBSvc().privateBrowsingEnabled = true; getPBSvc().privateBrowsingEnabled = true;
} else {
run_next_test();
}
} }
function test_private_browsing1() { function test_private_browsing1() {