JavaScript Test - regression test for bug 352013
git-svn-id: svn://10.0.0.236/trunk@224060 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ab65a05ee5
commit
1b3556d4a7
@ -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');
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user