JavaScript Test Library - Regression test for bug 336100, fix shell test

This commit is contained in:
bclary%bclary.com 2006-05-23 02:43:32 +00:00
Родитель 7f06137679
Коммит 4fe17a2aa1
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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);