JavaScript Test - regression test for bug 352013

This commit is contained in:
bclary@bclary.com 2007-04-03 03:07:19 -07:00
Родитель 75523bae12
Коммит 754a37f824
1 изменённых файлов: 16 добавлений и 1 удалений

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

@ -51,7 +51,7 @@ function test()
printBugNumber (bug);
printStatus (summary);
var f, g;
var f, g, h;
var x = Function;
var z = 'actual += arguments[0];';
var w = 42;
@ -72,5 +72,20 @@ function test()
g();
reportCompare(expect, actual, summary);
h = function () { new (x(y)(z)); }
expect = 'function () { new (x(y)(z)); }';
actual = h + '';
compareSource(expect, actual, summary);
h = function () { new (x(y).z); }
expect = 'function () { new (x(y).z); }';
actual = h + '';
compareSource(expect, actual, summary);
h = function () { new x(y).z; }
expect = 'function () { (new x(y)).z; }';
actual = h + '';
compareSource(expect, actual, summary);
exitFunc ('test');
}