Jacek Caban : jscript: Added tests of unary '+' on not existent property.

Alexandre Julliard julliard at winehq.org
Tue Nov 22 13:06:45 CST 2011


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Nov 22 16:31:29 2011 +0100

jscript: Added tests of unary '+' on not existent property.

---

 dlls/jscript/tests/lang.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
index 7cd20dd..c85907c 100644
--- a/dlls/jscript/tests/lang.js
+++ b/dlls/jscript/tests/lang.js
@@ -216,6 +216,10 @@ tmp = new Object();
 ok((~tmp.nonexistent) === -1, "!tmp.nonexistent = " + ~tmp.nonexistent);
 ok(!("nonexistent" in tmp), "nonexistent is in tmp after '~' expression")
 
+tmp = new Object();
+ok(isNaN(tmp.nonexistent), "!tmp.nonexistent = " + (+tmp.nonexistent));
+ok(!("nonexistent" in tmp), "nonexistent is in tmp after '+' expression")
+
 tmp = 0;
 if(true)
     tmp = 1;




More information about the wine-cvs mailing list