[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    khtmltests/js
From:       Harri Porten <porten () kde ! org>
Date:       2003-10-29 1:31:03
[Download RAW message or body]

CVS commit by porten: 

verify the order of var a, b; evaluation


  M +7 -0      var_decl_init.js   1.3


--- khtmltests/js/var_decl_init.js  #1.2:1.3
@@ -11,4 +11,10 @@
 }
 
+function varListOrder() {
+  var tmp = 0;
+  var i = ++tmp, j = ++tmp;
+  return j == 2;
+}
+
 function varInBlock() {
   return (myvar == undefined);
@@ -128,4 +134,5 @@
 shouldBe("varInFunction()","true");
 shouldBe("varInVarList()","true");
+shouldBe("varListOrder()","true");
 shouldBe("varInBlock()","true");
 shouldBe("varInIf()","true");


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic