[gjs] testGIMarshalling.js: Delete test case which mutates string list



commit b806fc070a02cc472f1ce26bb20d9bc8968d1163
Author: Colin Walters <walters verbum org>
Date:   Fri Jun 17 14:13:07 2011 -0400

    testGIMarshalling.js: Delete test case which mutates string list
    
    Basically it can't really work for us to allow C functions to mutate
    containers.  People just need to pass null to init functions.

 test/js/testGIMarshalling.js |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/test/js/testGIMarshalling.js b/test/js/testGIMarshalling.js
index 29975e2..4ca9e15 100644
--- a/test/js/testGIMarshalling.js
+++ b/test/js/testGIMarshalling.js
@@ -14,14 +14,6 @@ function testCArray() {
     var newArray = result[1];
     assertEquals(newArray.length, 0);
 
-    array = ["foo","bar","baz"];
-    var result = GIMarshallingTests.init_function(array);
-    var success = result[0];
-    var newArray = result[1];
-    assertEquals(2, newArray.length);
-    assertEquals(newArray[0], "foo");
-    assertEquals(newArray[1], "bar");
-
     array = GIMarshallingTests.array_zero_terminated_return();
     assertEquals("0", array[0]);
     assertEquals("1", array[1]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]