B2G/gecko/toolkit/mozapps/update/test/unit/test_0020_general.js
// call the nsIDOMEventListener's handleEvent method for onload.
call the nsIDOMEventListener's handleEvent method for onload.
call the nsIDOMEventListener ' s handleEvent method for onload .
function callHandleEvent() {
  gXHR.status = 400;
  gXHR.responseText = gResponseBody;
  try {
    var parser = AUS_Cc["@mozilla.org/xmlextras/domparser;1"].
                 createInstance(AUS_Ci.nsIDOMParser);
    gXHR.responseXML = parser.parseFromString(gResponseBody, "application/xml");
  }
  catch(e) {
    gXHR.responseXML = null;
  }
  var e = { target: gXHR };
  gXHR.onload(e);
}
function callHandleEvent ( ) { gXHR . status = 400 ; gXHR . responseText = gResponseBody ; try { var parser = AUS_Cc [ "@mozilla.org/xmlextras/domparser;1" ] . createInstance ( AUS_Ci . nsIDOMParser ) ; gXHR . responseXML = parser . parseFromString ( gResponseBody , "application/xml" ) ; } catch ( e ) { gXHR . responseXML = null ; } var e = { target : gXHR } ; gXHR . onload ( e ) ; }
call the nsIDOMEventListener's handleEvent method for onload.
call the nsIDOMEventListener ' s handleEvent method for onload .