Bug 783031 - Make js1_5/Regress/regress-328897.js throw a different way. r=jmaher

This commit is contained in:
Bobby Holley 2012-08-16 18:33:27 -07:00
Родитель 7fbe69ed30
Коммит c431e7e323
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -19,7 +19,7 @@ if (typeof window == 'undefined')
}
else
{
expect = /(Script error.|Permission denied to access property 'classes')/;
expect = /NS_ERROR_XPC_NOT_ENOUGH_ARGS/;
window._onerror = window.onerror;
window.onerror = (function (msg, page, line) {
@ -31,8 +31,8 @@ else
gDelayTestDriverEnd = true;
// Trying to set Components.classes will trigger a Permission denied exception
window.location="javascript:Components.classes = 42";
// Trying to set call window.alert() without any arguments will throw.
window.alert();
actual = 'No Error';
}