Unit test bustage fix for apps that don't have private browsing following bug 728143. Fix incorrect brackets in if statement and a bad function name in the tests. r=bustage fix,test-only fix

This commit is contained in:
Mark Banner 2012-03-22 19:51:27 +00:00
parent 17e9213595
commit da888d3e8c
2 changed files with 3 additions and 3 deletions

View File

@ -52,8 +52,8 @@ add_test(function test_aboutURI_bookmarked()
add_test(function test_privateBrowsing_bookmarked()
{
if (!"@mozilla.org/privatebrowsing;1" in Cc) {
run_next_next();
if (!("@mozilla.org/privatebrowsing;1" in Cc)) {
run_next_test();
return;
}

View File

@ -86,7 +86,7 @@ add_test(function test_aboutURI()
add_test(function test_privateBrowsing_nonBookmarkedURI()
{
if (!"@mozilla.org/privatebrowsing;1" in Cc) {
if (!("@mozilla.org/privatebrowsing;1" in Cc)) {
run_next_test();
return;
}