зеркало из 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);
|
printBugNumber (bug);
|
||||||
printStatus (summary);
|
printStatus (summary);
|
||||||
|
|
||||||
var f, g;
|
var f, g, h;
|
||||||
var x = Function;
|
var x = Function;
|
||||||
var z = 'actual += arguments[0];';
|
var z = 'actual += arguments[0];';
|
||||||
var w = 42;
|
var w = 42;
|
||||||
|
@ -72,5 +72,20 @@ function test()
|
||||||
g();
|
g();
|
||||||
reportCompare(expect, actual, summary);
|
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');
|
exitFunc ('test');
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче