зеркало из https://github.com/mozilla/pjs.git
Switch tests to fixed time to avoid DST issue from bug 402434
This commit is contained in:
Родитель
6518e745b8
Коммит
816f5d100c
|
@ -39,7 +39,8 @@
|
|||
const DATA = "";
|
||||
const FILENAME = "test.txt";
|
||||
const CRC = 0x00000000;
|
||||
const time = Date.now();
|
||||
// XXX Must use a constant time here away from DST changes. See bug 402434.
|
||||
const time = 1199145600000; // Jan 1st 2008
|
||||
|
||||
function testpass(source)
|
||||
{
|
||||
|
|
|
@ -39,7 +39,8 @@
|
|||
const DATA = "ZIP WRITER TEST DATA";
|
||||
const FILENAME = "test.txt";
|
||||
const CRC = 0xe6164331;
|
||||
const time = Date.now();
|
||||
// XXX Must use a constant time here away from DST changes. See bug 402434.
|
||||
const time = 1199145600000; // Jan 1st 2008
|
||||
|
||||
function run_test()
|
||||
{
|
||||
|
|
|
@ -40,7 +40,8 @@ const DATA = "ZIP WRITER TEST DATA";
|
|||
const FILENAME = "test.txt";
|
||||
const FILENAME2 = "test2.txt";
|
||||
const CRC = 0xe6164331;
|
||||
const time = Date.now();
|
||||
// XXX Must use a constant time here away from DST changes. See bug 402434.
|
||||
const time = 1199145600000; // Jan 1st 2008
|
||||
|
||||
function testpass(source)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче