B2G/gecko/toolkit/mozapps/update/test/chrome/utils.js
/**
 * Closes the update window if it is open and causes the test to fail if an
 * update window is found.
 *
 * @return true if an update window was found, otherwise false.
 */
Closes the update window if it is open and causes the test to fail if an
update window is found.

@return true if an update window was found, otherwise false.
Closes the update window if it is open and causes the test to fail if an update window is found . @return true if an update window was found otherwise false .
function closeUpdateWindow() {
  let updateWindow = getUpdateWindow();
  if (!updateWindow)
    return false;
  ok(false, "Found an existing Update Window from the current or a previous " +
            "test... attempting to close it.");
  updateWindow.close();
  return true;
}
function closeUpdateWindow ( ) { let updateWindow = getUpdateWindow ( ) ; if ( ! updateWindow ) return false ; ok ( false , "Found an existing Update Window from the current or a previous " + "test... attempting to close it." ) ; updateWindow . close ( ) ; return true ; }
Closes the update window if it is open and causes the test to fail if an
 update window is found.
Closes the update window if it is open and causes the test to fail if an update window is found .