mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
JavaScript Tests - update test to catch exception in browser tests, bug 420612
This commit is contained in:
parent
10d6312b8c
commit
d914c4b13e
@ -44,6 +44,18 @@ var expect = 'No Crash';
|
||||
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
this.__proto__ = [];
|
||||
this.unwatch("x");
|
||||
try
|
||||
{
|
||||
this.__proto__ = [];
|
||||
this.unwatch("x");
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
print(ex + '');
|
||||
if (typeof window != 'undefined')
|
||||
{
|
||||
expect = 'Error: invalid __proto__ value (can only be set to null)';
|
||||
}
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, summary);
|
||||
|
Loading…
Reference in New Issue
Block a user