| Index: test/mjsunit/fixed-date.js
|
| diff --git a/test/mjsunit/fixed-date.js b/test/mjsunit/fixed-date.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5a684b0605ced3c12e06a7b3af970a27c003a040
|
| --- /dev/null
|
| +++ b/test/mjsunit/fixed-date.js
|
| @@ -0,0 +1,11 @@
|
| +// Copyright 2015 the V8 project authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// Flags: --fixed-date=42940800
|
| +
|
| +var Jan1_2014_millis = 1388534400000;
|
| +var fixed_date_secs = 42940800;
|
| +assertEquals(Date.now(), Jan1_2014_millis + fixed_date_secs * 1000);
|
| +assertEquals(Date.now(), Jan1_2014_millis + fixed_date_secs * 1000);
|
| +assertEquals(new Date().valueOf(), Jan1_2014_millis + fixed_date_secs * 1000);
|
|
|