This commit is contained in:
Ehsan Akhgari 2014-01-17 11:44:34 -05:00
Родитель 54e0cda57b
Коммит a3d9ac24e5
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -16,6 +16,9 @@ function checkException(func, exc)
catch (ex) { catch (ex) {
exceptionThrew = true; exceptionThrew = true;
is(ex.name, exc, "Expected "+exc+" exception"); is(ex.name, exc, "Expected "+exc+" exception");
if (ex.name != exc) {
ok(true, "The exception which was thrown is: " + ex);
}
} }
ok(exceptionThrew, "Exception "+exc+" threw"); ok(exceptionThrew, "Exception "+exc+" threw");
} }