Call dumpArray() after deleting array, to see if all objects are properly deleted.

This commit is contained in:
pedemont@us.ibm.com
2004-10-26 20:16:04 +00:00
parent 7ae2083b1f
commit 7be48b80e0

View File

@@ -164,6 +164,7 @@ public class TestArray {
System.out.println("release array:");
array = null;
System.gc();
dumpArray(array, 0, null, 0);
componentManager = null;
System.gc();
@@ -190,7 +191,9 @@ public class TestArray {
static void dumpArray(nsIMutableArray aArray, int aExpectedCount,
int[] aElementIDs, int aExpectedTotal)
{
int count = aArray.getLength();
int count = 0;
if (aArray != null)
count = aArray.getLength();
System.out.println("object count " + Foo.gCount + " = " + aExpectedTotal +
" " + assertEqual(Foo.gCount, aExpectedTotal));