JavaScript Tests - modify test to catch allocation size overflow, bug 422348

This commit is contained in:
bclary@bclary.com 2008-03-15 04:56:17 -07:00
parent 502276276f
commit 54067d5757

View File

@ -51,6 +51,15 @@ expectExitCode(3);
printStatus('This test passes if the browser does not hang or crash');
printStatus('This test expects exit code 0 or 3 to indicate out of memory');
var result = Array(1 << 29).sort();
try
{
var result = Array(1 << 29).sort();
}
catch(ex)
{
// handle changed 1.9 branch behavior. see bug 422348
expect = 'InternalError: allocation size overflow';
actual = ex + '';
}
reportCompare(expect, actual, summary);