testImagesRemovedAfterStart() {
    // Use synchronous image loading.
    makeLoaderSynchronous(loader);

    // Remove 2 images once the first image finishes loading.
    events.listenOnce(loader, EventType.LOAD, function(e) {
      loader.removeImage(
          googArray.peek(googObject.getKeys(this.imageIdToRequestMap_)));
      loader.removeImage(
          googArray.peek(googObject.getKeys(this.imageIdToRequestMap_)));
    });

    // Keep track of the total # of image loads.
    const loadRecordFn = recordFunction();
    events.listen(loader, EventType.LOAD, loadRecordFn);

    // Keep track of how many times COMPLETE was dispatched.
    const completeRecordFn = recordFunction();
    events.listen(loader, NetEventType.COMPLETE, completeRecordFn);

    // Start testing.  Make sure only the 3 images remaining loaded.
    loader.start();
    assertEquals(
        'COMPLETE should have been dispatched once.', 1,
        completeRecordFn.getCallCount());
    assertEquals(
        'All images should have been loaded',
        googObject.getCount(TEST_IMAGES) - 2, loadRecordFn.getCallCount());
  }
Verifies that if images are removed after loading has started, COMPLETE
is dispatched once the remaining images have finished.