Module: wine Branch: master Commit: b5aeb661b9297a6ee6047335f42543936f593525 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5aeb661b9297a6ee6047335f4...
Author: Jacek Caban jacek@codeweavers.com Date: Wed May 25 14:08:21 2016 +0200
jscript: Added non-zero timezone offset tests.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/jscript/tests/api.js | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index e5e6350..ca6131b 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -2098,6 +2098,8 @@ ok(Date.parse("Jan 20 2009 UTC") === 1232409600000, "Date.parse("Jan 20 2009 UT ok(Date.parse("Jan 20 2009 GMT") === 1232409600000, "Date.parse("Jan 20 2009 GMT") = " + Date.parse("Jan 20 2009 GMT")); ok(Date.parse("Jan 20 2009 UTC-0") === 1232409600000, "Date.parse("Jan 20 2009 UTC-0") = " + Date.parse("Jan 20 2009 UTC-0")); ok(Date.parse("Jan 20 2009 UTC+0000") === 1232409600000, "Date.parse("Jan 20 2009 UTC+0000") = " + Date.parse("Jan 20 2009 UTC+0000")); +ok(Date.parse("Jan 20 2009 UTC-1") === 1232413200000, "Date.parse("Jan 20 2009 UTC-1") = " + Date.parse("Jan 20 2009 UTC-1")); +ok(Date.parse("Jan 20 2009 UTC+1") === 1232406000000, "Date.parse("Jan 20 2009 UTC+1") = " + Date.parse("Jan 20 2009 UTC+1")); ok(Date.parse("Ju 13 79 UTC") === 300672000000, "Date.parse("Ju 13 79 UTC") = " + Date.parse("Ju 13 79 UTC")); ok(Date.parse("12Au91 UTC") === 681955200000, "Date.parse("12Au91 UTC") = " + Date.parse("12Au91 UTC")); ok(Date.parse("7/02/17 UTC") === -1656806400000, "Date.parse("7/02/17 UTC") = " + Date.parse("7/02/17 UTC"));