function overrideGlobal(funcName) {
  assertNotEquals(undefined, this[funcName]);
  var globalOverride = globalOverrides[funcName];
  assertNotEquals(undefined, globalOverride);
  assertEquals(undefined, globalOverride.original);
  globalOverride.original = this[funcName];
  this[funcName] = globalOverride.callback.bind(globalOverride.object);
}
/**
 * Override the global function |funcName| with its registered mock. This
 * should not be called twice for the same |funcName|.
 * @param {string} funcName The name of the global function to override.
 */
Override the global function |funcName| with its registered mock. This
should not be called twice for the same |funcName|.
@param {string} funcName The name of the global function to override.
Override the global function |funcName| with its registered mock . This should not be called twice for the same |funcName| . @param { string } funcName The name of the global function to override .
function overrideGlobal(funcName) {
  assertNotEquals(undefined, this[funcName]);
  var globalOverride = globalOverrides[funcName];
  assertNotEquals(undefined, globalOverride);
  assertEquals(undefined, globalOverride.original);
  globalOverride.original = this[funcName];
  this[funcName] = globalOverride.callback.bind(globalOverride.object);
}
function overrideGlobal ( funcName ) { assertNotEquals ( undefined , this [ funcName ] ) ; var globalOverride = globalOverrides [ funcName ] ; assertNotEquals ( undefined , globalOverride ) ; assertEquals ( undefined , globalOverride . original ) ; globalOverride . original = this [ funcName ] ; this [ funcName ] = globalOverride . callback . bind ( globalOverride . object ) ; }
Override the global function |funcName| with its registered mock.
Override the global function |funcName| with its registered mock .