зеркало из https://github.com/mozilla/gecko-dev.git
Bug 643172 - improve a11y eventQueue logging, r=marcoz
This commit is contained in:
Родитель
004e03af67
Коммит
b19aadd98d
|
@ -613,9 +613,9 @@ function getNodePrettyName(aNode)
|
|||
function getObjAddress(aObj)
|
||||
{
|
||||
var exp = /native\s*@\s*(0x[a-f0-9]+)/g;
|
||||
var match = exp.exec(aObj.valueOf());
|
||||
var match = exp.exec(aObj.toString());
|
||||
if (match)
|
||||
return match[1];
|
||||
|
||||
return aObj.valueOf();
|
||||
return aObj.toString();
|
||||
}
|
||||
|
|
|
@ -304,12 +304,20 @@ function eventQueue(aEventType)
|
|||
// Start processing of next invoker.
|
||||
invoker = this.getNextInvoker();
|
||||
|
||||
this.setEventHandler(invoker);
|
||||
|
||||
if (gLogger.isEnabled()) {
|
||||
gLogger.logToConsole("Event queue: \n invoke: " + invoker.getID());
|
||||
gLogger.logToDOM("EQ: invoke: " + invoker.getID(), true);
|
||||
}
|
||||
|
||||
this.setEventHandler(invoker);
|
||||
var infoText = "Invoke the '" + invoker.getID() + "' test { ";
|
||||
for (var idx = 0; idx < this.mEventSeq.length; idx++) {
|
||||
infoText += this.isEventUnexpected(idx) ? "un" : "";
|
||||
infoText += "expected '" + this.getEventTypeAsString(idx) + "' event; ";
|
||||
}
|
||||
infoText += " }";
|
||||
info(infoText);
|
||||
|
||||
if (invoker.invoke() == INVOKER_ACTION_FAILED) {
|
||||
// Invoker failed to prepare action, fail and finish tests.
|
||||
|
|
Загрузка…
Ссылка в новой задаче