From b266386bbb646db5bdb775d85486c15a332c4202 Mon Sep 17 00:00:00 2001 From: James Coglan Date: Sat, 6 Jul 2013 15:03:05 +0100 Subject: [PATCH] Remove timezone sensitivity from a date test. --- test/specs/test/unit_spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/specs/test/unit_spec.js b/test/specs/test/unit_spec.js index 6e1b186f..065cf79c 100644 --- a/test/specs/test/unit_spec.js +++ b/test/specs/test/unit_spec.js @@ -291,18 +291,18 @@ Test.UnitSpec = JS.Test.describe(JS.Test.Unit, function() { with(this) { }, function() { resume(function() { assertTestResult( 2, 2, 2, 0 ) - var tz = new Date().toGMTString().split(" ").pop(), - oh = /05/.test(new Date(2012,6,5,12)) ? "0" : "" + var mar = new Date(1986,2,5).toGMTString(), + feb = new Date(1984,1,25).toGMTString() assertMessage( 1, "Failure:\n" + "test1(TestedSuite):\n" + - " expected but was\n" + - "" ) + "<" + mar + "> expected but was\n" + + "<" + feb + ">" ) assertMessage( 2, "Failure:\n" + "test2(TestedSuite):\n" + - " expected not to be equal to\n" + - "" ) + "<" + mar + "> expected not to be equal to\n" + + "<" + mar + ">" ) })}) }}) }})