JavaScript Test Library - trap exceptions when getting non-existent options in JavaScriptOptions()

This commit is contained in:
bob%bclary.com 2005-10-28 08:13:36 +00:00
Родитель 0d11c9e874
Коммит 8bf2b51a32
11 изменённых файлов: 187 добавлений и 22 удалений

Просмотреть файл

@ -778,8 +778,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -341,8 +341,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -384,8 +384,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -289,8 +289,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -263,8 +263,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -311,8 +311,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -312,8 +312,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -384,8 +384,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -384,8 +384,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -336,8 +336,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch(e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}

Просмотреть файл

@ -348,8 +348,23 @@ function JavaScriptOptions()
throw 'JavaScriptOptions: unable to get prefService branch';
}
this.orig.strict = this.strict = pref.getBoolPref('javascript.options.strict');
this.orig.werror = this.werror = pref.getBoolPref('javascript.options.werror');
try
{
this.orig.strict = this.strict =
pref.getBoolPref('javascript.options.strict');
}
catch (e)
{
}
try
{
this.orig.werror = this.werror =
pref.getBoolPref('javascript.options.werror');
}
catch(e)
{
}
}
}