зеркало из https://github.com/mozilla/gecko-dev.git
JavaScript Test Library - Regression test for bug 336100, fix shell test
This commit is contained in:
Родитель
7f06137679
Коммит
4fe17a2aa1
|
@ -38,13 +38,16 @@
|
||||||
var bug = 336100;
|
var bug = 336100;
|
||||||
var summary = 'bug 336100 - arguments regressed';
|
var summary = 'bug 336100 - arguments regressed';
|
||||||
var actual = '';
|
var actual = '';
|
||||||
var expect = '[object Object]';
|
var expect;
|
||||||
|
|
||||||
printBugNumber (bug);
|
printBugNumber (bug);
|
||||||
printStatus (summary);
|
printStatus (summary);
|
||||||
|
|
||||||
|
expect = '[object Object]';
|
||||||
actual = (function(){return (arguments + '');})();
|
actual = (function(){return (arguments + '');})();
|
||||||
reportCompare(expect, actual, summary);
|
reportCompare(expect, actual, summary);
|
||||||
|
|
||||||
|
// see bug 336100 comment 29
|
||||||
|
expect = typeof window == 'undefined' ? '' : '[object Object]';
|
||||||
actual = (function(){with (this) return(arguments + '');})();
|
actual = (function(){with (this) return(arguments + '');})();
|
||||||
reportCompare(expect, actual, summary);
|
reportCompare(expect, actual, summary);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче