B2G/gecko/accessible/tests/mochitest/pivot.js
/**
 * Create a pivot, remove its root, and perform an operation where the root is
 * needed.
 *
 * @param aRootNode [in] DOM node of which accessible will be the root of the
 *                       pivot. Should have more than one child.
 */
Create a pivot, remove its root, and perform an operation where the root is
needed.

@param aRootNode [in] DOM node of which accessible will be the root of the
pivot. Should have more than one child.
Create a pivot remove its root and perform an operation where the root is needed . @param aRootNode [ in ] DOM node of which accessible will be the root of the pivot . Should have more than one child .
function removeVCRootInvoker(aRootNode)
{
  this.pivot = gAccRetrieval.createAccessiblePivot(getAccessible(aRootNode));
  this.invoke = function removeVCRootInvoker_invoke()
  {
    this.pivot.position = this.pivot.root.firstChild;
    aRootNode.parentNode.removeChild(aRootNode);
  };
  this.getID = function removeVCRootInvoker_getID()
  {
    return "Remove root of pivot from tree.";
  };
  this.eventSeq = [
    new removeVCRootChecker(this.pivot)
  ];
}
function removeVCRootInvoker ( aRootNode ) { this . pivot = gAccRetrieval . createAccessiblePivot ( getAccessible ( aRootNode ) ) ; this . invoke = function removeVCRootInvoker_invoke ( ) { this . pivot . position = this . pivot . root . firstChild ; aRootNode . parentNode . removeChild ( aRootNode ) ; } ; this . getID = function removeVCRootInvoker_getID ( ) { return "Remove root of pivot from tree." ; } ; this . eventSeq = [ new removeVCRootChecker ( this . pivot ) ] ; }
Create a pivot, remove its root, and perform an operation where the root is
 needed.
Create a pivot remove its root and perform an operation where the root is needed .