add regression test for bug 125430. NOT PART OF THE BUILD

This commit is contained in:
jband%netscape.com 2002-02-14 06:01:54 +00:00
Родитель bfd5e8e314
Коммит 43ed832482
1 изменённых файлов: 38 добавлений и 0 удалений

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

@ -401,6 +401,44 @@ foo = bar = iface = clazz = null;
/***************************************************************************/
var r = new Object();
r.SetReceiver = function() {};
r.SendOneString = function(str) {Components.returnCode = code; return null;}
echo.SetReceiver(r);
var all_ok = true;
var code = Components.results.NS_OK;
try {
echo.SendOneString("");
} catch(e) {
all_ok = false;
}
var code = Components.results.NS_ERROR_FAILURE;
try {
echo.SendOneString("");
all_ok = false;
} catch(e) {
if(e.result != code)
all_ok = false;
}
var code = Components.results.NS_ERROR_NULL_POINTER;
try {
echo.SendOneString("");
all_ok = false;
} catch(e) {
if(e.result != code)
all_ok = false;
}
print("returnCode test - "+(all_ok ? "passed" : "failed"));
echo.SetReceiver(null);
r = null;
/***************************************************************************/
print(".......................................");
print("simple speed tests...");