зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
a298b9b50d
Коммит
bc18a20ccf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче