Jacek Caban : jscript: Added a few more arguments tests.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 24 11:04:01 CDT 2016


Module: wine
Branch: master
Commit: 47cf3fe36d4f5a2f83c0d48ee763c256cd6010c5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=47cf3fe36d4f5a2f83c0d48ee763c256cd6010c5

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Mar 24 16:39:23 2016 +0100

jscript: Added a few more arguments tests.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/jscript/tests/lang.js | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
index 3e60aba..5b1b510 100644
--- a/dlls/jscript/tests/lang.js
+++ b/dlls/jscript/tests/lang.js
@@ -194,6 +194,20 @@ ok(testRecFunc.arguments === null, "testRecFunc.arguments = " + testRecFunc.argu
 testRecFunc(true);
 ok(testRecFunc.arguments === null, "testRecFunc.arguments = " + testRecFunc.arguments);
 
+function argumentsTest() {
+    var save = arguments;
+    with({arguments: 1}) {
+        ok(arguments === 1, "arguments = " + arguments);
+        (function() {
+            ok(argumentsTest.arguments === save, "unexpected argumentsTest.arguments");
+        })();
+    }
+    eval('ok(arguments === save, "unexpected arguments");');
+    [1,2].sort(function() {
+        ok(argumentsTest.arguments === save, "unexpected argumentsTest.arguments");
+    });
+}
+
 tmp = (function() {1;})();
 ok(tmp === undefined, "tmp = " + tmp);
 tmp = eval("1;");




More information about the wine-cvs mailing list