|
@@ -741,13 +741,6 @@ namespace Jint.Tests.Runtime
|
|
|
[Fact]
|
|
|
public void ParseShouldReturnNumber()
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
- RunTest(@"
|
|
|
- var d = Date.parse('1970-01-01');
|
|
|
- assert(d === 0);
|
|
|
- ");
|
|
|
-
|
|
|
var engine = new Engine();
|
|
|
|
|
|
var result = engine.Execute("Date.parse('1970-01-01');").GetCompletionValue().AsNumber();
|
|
@@ -757,12 +750,10 @@ namespace Jint.Tests.Runtime
|
|
|
[Fact]
|
|
|
public void UtcShouldUseUtc()
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
- RunTest(@"
|
|
|
- var d = Date.UTC(1970,0,1);
|
|
|
- assert(d === 0);
|
|
|
- ");
|
|
|
+ if (TimeZoneInfo.Local.BaseUtcOffset.Equals(new TimeSpan(0)))
|
|
|
+ {
|
|
|
+ throw new Exception("Test is not valid if the Local timezone offset is the same as UTC.");
|
|
|
+ }
|
|
|
|
|
|
var engine = new Engine();
|
|
|
|