Module: wine Branch: master Commit: a8b5dc84bd98662ddfe4d8b50c4c558bbdf0c22f URL: http://source.winehq.org/git/wine.git/?a=commit;h=a8b5dc84bd98662ddfe4d8b50c...
Author: Jacek Caban jacek@codeweavers.com Date: Wed May 25 14:08:15 2016 +0200
jscript: Removed obsolete FIXME comments in tests and add relevant tests.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/jscript/tests/lang.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index a9f95f8..ee30836 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -208,10 +208,13 @@ function argumentsTest() { return 1; }); } -/* FIXME: It seems that when function is called as an expression, instance object arguments is not set. - * We currently always set it in Wine. */ + argumentsTest();
+(function callAsExprTest() { + ok(callAsExprTest.arguments === null, "callAsExprTest.arguments = " + callAsExprTest.arguments); +})(1,2); + tmp = (function() {1;})(); ok(tmp === undefined, "tmp = " + tmp); tmp = eval("1;");