class: RegressionTests::JavaScriptTests expecco_2_6_0 expecco_2_6_0_45_windows_final expecco_2_6_0_49_windows_final expecco_2_6_0rc1 expecco_2_6_1 expecco_2_6_2
authorStefan Vogel <sv@exept.de>
Wed, 30 Oct 2013 12:56:52 +0100
changeset 1003 0a8da511c390
parent 1002 820e29485296
child 1004 9021e9f5967b
class: RegressionTests::JavaScriptTests fix testForIn01, testForIn02
RegressionTests__JavaScriptTests.st
--- a/RegressionTests__JavaScriptTests.st	Fri Sep 20 21:31:16 2013 +0200
+++ b/RegressionTests__JavaScriptTests.st	Wed Oct 30 12:56:52 2013 +0100
@@ -1205,16 +1205,17 @@
 
     output := '' writeStream.
     self 
-        execute:'test(arg) {
+        execute:'test(arg, output) {
                     var sum = 0;
 
                     for (var el in arg) {
-                        out.showCR(el*el);
+                        output.showCR(el*el);
                         sum += el;
                     }
-                 }'
-        for:nil
-        arguments:( #(1 2 3) )
+                    return sum;    
+                 }'
+        for:nil
+        arguments:( Array with:#(1 2 3) with:output)
         expect:6.
 
     self assert:(output contents asCollectionOfLinesWithReturn asArray = #(