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

git-svn-id: svn://10.0.0.236/trunk@164447 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pedemont%us.ibm.com
2004-10-26 20:16:04 +00:00
parent d0eb2a9d37
commit eb7613bcfa

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));