зеркало из https://github.com/mozilla/gecko-dev.git
JavaScript Test - regression test for bug 352013
This commit is contained in:
Родитель
75523bae12
Коммит
754a37f824
|
@ -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');
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче