Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Unified Diff: LayoutTests/inspector/console/console-timestamp.html

Issue 694243002: Blink gardening, updated test expectations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-timestamp.html
diff --git a/LayoutTests/inspector/console/console-timestamp.html b/LayoutTests/inspector/console/console-timestamp.html
index 3ff9fae2f0227505af38ed837f7370121de987fe..06d5b49e270e2a92b798b7303767d48272d5cfd5 100644
--- a/LayoutTests/inspector/console/console-timestamp.html
+++ b/LayoutTests/inspector/console/console-timestamp.html
@@ -5,7 +5,10 @@
<script>
function test()
{
- var tzOffset = new Date(Date.now()).getTimezoneOffset() * 60 * 1000;
+ // It is essential that we calculate timezone for this particular moment of time
+ // otherwise the time zone offset could be different because of DST.
+ var baseDate = Date.parse("2014-05-13T16:53:20.123Z");
+ var tzOffset = new Date(baseDate).getTimezoneOffset() * 60 * 1000;
var baseTimestamp = 1400000000000 + tzOffset;
function addMessageWithFixedTimestamp(messageText, timestamp)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698