Module: wine Branch: master Commit: 0c8794614de23a691ab37fe1ac6e936f24f658a8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0c8794614de23a691ab37fe1ac...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Oct 21 22:44:39 2009 +0200
jscript: Fixed a test that depends on time zone.
---
dlls/jscript/tests/api.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/tests/api.js b/dlls/jscript/tests/api.js index cc13f03..da32da4 100644 --- a/dlls/jscript/tests/api.js +++ b/dlls/jscript/tests/api.js @@ -1595,7 +1595,7 @@ ok(err.toString === Error.prototype.toString, "err.toString !== Error.prototype. ok(err.message === "", "err.message != ''"); err.message = date; ok(err.message === date, "err.message != date"); -ok(err.toString() === (invokeVersion < 2 ? "[object Error]" : "EvalError: Fri Aug 17 22:50:50 UTC+0200 85"), +ok(err.toString().substring(0,21) === (invokeVersion < 2 ? "[object Error]" : "EvalError: Fri Aug 17"), "err.toString() = " + err.toString()); ok(err.toString !== Object.prototype.toString, "err.toString === Object.prototype.toString"); err = new RangeError();