Correct erroneous tests, no bug, not part of the build

This commit is contained in:
bob%bclary.com 2005-11-24 04:49:48 +00:00
Родитель 0c69c8767b
Коммит 9990df994c
1 изменённых файлов: 2 добавлений и 14 удалений

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

@ -223,9 +223,9 @@ reportCompare(expect, actual, 'Date.toLocaleFormat("%m/%d/%y) == ' +
'Date.toLocaleFormat("%x")');
*/
expect = date.toLocaleFormat('%H:%M:%S');
expect = date.toLocaleTimeString();
actual = date.toLocaleFormat('%X');
reportCompare(expect, actual, 'Date.toLocaleFormat("%H:%M:%S) == ' +
reportCompare(expect, actual, 'Date.toLocaleTimeString() == ' +
'Date.toLocaleFormat("%X")');
expect = '05';
@ -236,18 +236,6 @@ expect = '2005';
actual = date.toLocaleFormat('%Y');
reportCompare(expect, actual, 'Date.toLocaleFormat("%Y")');
/*
expect = String(-date.getTimezoneOffset()/60); // assume integral hours
actual = Number(date.toLocaleFormat('%z'))/100;
reportCompare(expect, actual, 'Date.getTimezoneOffset() == ' +
'Date.toLocaleFormat("%z")');
*/
expect = true;
temp = date.toLocaleFormat('%Z');
actual = temp.indexOf('Time') > 0;
reportCompare(expect, actual, 'Date.toLocaleFormat("%Z")');
expect = '%';
actual = date.toLocaleFormat('%%');
reportCompare(expect, actual, 'Date.toLocaleFormat("%%")');