Skip to content

Commit 3f338d7

Browse files
author
Erik Schilling
committed
Added debug info for debugging Appveyor failures
1 parent e12864b commit 3f338d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/Noesis.Javascript.Tests/DateTest.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public void SetAndReadDateTimeUnspecified()
6161
[TestMethod]
6262
public void CreateCurrentDateInJavaScript()
6363
{
64+
Console.WriteLine("Offset reported by JS: " + _context.Run("new Date().getTimezoneOffset()"));
65+
Console.WriteLine("Offset reported by C#: " + TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).ToString());
66+
6467
DateTime currentTimeAsReportedByV8 = (DateTime)_context.Run("new Date()");
6568
(currentTimeAsReportedByV8 - DateTime.Now).TotalSeconds.Should().BeLessThan(1, "Dates should be mostly equal");
6669
}

0 commit comments

Comments
 (0)