B2G/gecko/accessible/tests/mochitest/events.js
/**
 * Base class of sequence item.
 */
Base class of sequence item.
Base class of sequence item .
function sequenceItem(aProcessor, aEventType, aTarget, aItemID)
{
  this.startProcess = function sequenceItem_startProcess()
  {
    this.queue.invoke();
  }
  var item = this;
  this.queue = new eventQueue();
  this.queue.onFinish = function()
  {
    aProcessor.onProcessed();
    return DO_NOT_FINISH_TEST;
  }
  var invoker = {
    invoke: function invoker_invoke() {
      return aProcessor.process();
    },
    getID: function invoker_getID()
    {
      return aItemID;
    },
    eventSeq: [ new invokerChecker(aEventType, aTarget) ]
  };
  this.queue.push(invoker);
}
function sequenceItem ( aProcessor , aEventType , aTarget , aItemID ) { this . startProcess = function sequenceItem_startProcess ( ) { this . queue . invoke ( ) ; } var item = this ; this . queue = new eventQueue ( ) ; this . queue . onFinish = function ( ) { aProcessor . onProcessed ( ) ; return DO_NOT_FINISH_TEST ; } var invoker = { invoke : function invoker_invoke ( ) { return aProcessor . process ( ) ; } , getID : function invoker_getID ( ) { return aItemID ; } , eventSeq : [ new invokerChecker ( aEventType , aTarget ) ] } ; this . queue . push ( invoker ) ; }
Base class of sequence item.
Base class of sequence item .
// private