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