testTimeout() {
    const mm = getModuleManager({'s': []});
    mm.setLoader(createTimeoutLoader(mm, undefined));

    // Callback checks for timeout
    let firedTimeout = false;
    mm.registerCallback(
        ModuleManager.CallbackType.ERROR, (callbackType, id, cause) => {
          assertEquals(
              'Failure cause was not as expected',
              ModuleLoadFailure.Type.TIMEOUT, cause.type);
          firedTimeout = true;
        });

    mm.preloadModule('s', 0);
    assertFalse('module "s" should not be loaded (0)', mm.isModuleLoaded('s'));
    clock.tick(5);
    assertFalse('module "s" should not be loaded (1)', mm.isModuleLoaded('s'));
    assertTrue('should have called timeout callback', firedTimeout);
  }
Test timeout.
@suppress {missingProperties,checkTypes} suppression
     added to enable type checking