Tests - fixed

This commit is contained in:
vakrilov
2015-05-15 18:38:18 +03:00
parent 57171c768e
commit c3aea99078
3 changed files with 59 additions and 67 deletions

View File

@@ -175,7 +175,12 @@ export function buildUIWithWeakRefAndInteract<T extends view.View>(createFunc: (
}
sp.removeChild(weakRef.get());
forceGC();
if (newPage.ios) {
// Could cause GC on the next call.
// NOTE: Don't replace this with forceGC();
new ArrayBuffer(4 * 1024 * 1024);
}
utils.GC();
TKUnit.assert(!weakRef.get(), weakRef.get() + " leaked!");
testFinished = true;