B2G/gecko/accessible/tests/mochitest/pivot.js
/**
 * A checker for removing an accessible while the virtual cursor is on it.
 */
A checker for removing an accessible while the virtual cursor is on it.
A checker for removing an accessible while the virtual cursor is on it .
function removeVCPositionChecker(aDocAcc, aHiddenParentAcc)
{
  this.__proto__ = new invokerChecker(EVENT_REORDER, aHiddenParentAcc);
  this.check = function removeVCPositionChecker_check(aEvent) {
    var errorResult = 0;
    try {
      aDocAcc.virtualCursor.moveNext(ObjectTraversalRule);
    } catch (x) {
      errorResult = x.result;
    }
    SimpleTest.is(
      errorResult, NS_ERROR_NOT_IN_TREE,
      "Expecting NOT_IN_TREE error when moving pivot from invalid position.");
  };
}
function removeVCPositionChecker ( aDocAcc , aHiddenParentAcc ) { this . __proto__ = new invokerChecker ( EVENT_REORDER , aHiddenParentAcc ) ; this . check = function removeVCPositionChecker_check ( aEvent ) { var errorResult = 0 ; try { aDocAcc . virtualCursor . moveNext ( ObjectTraversalRule ) ; } catch ( x ) { errorResult = x . result ; } SimpleTest . is ( errorResult , NS_ERROR_NOT_IN_TREE , "Expecting NOT_IN_TREE error when moving pivot from invalid position." ) ; } ; }
A checker for removing an accessible while the virtual cursor is on it.
A checker for removing an accessible while the virtual cursor is on it .