зеркало из https://github.com/mozilla/gecko-dev.git
Correct erroneous tests, no bug, not part of the build
This commit is contained in:
Родитель
0c69c8767b
Коммит
9990df994c
|
@ -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("%%")');
|
||||
|
|
Загрузка…
Ссылка в новой задаче