From 8ceb60e9842e1364d4ed0cb3418b80de36fa2611 Mon Sep 17 00:00:00 2001 From: Jonathan Griffin Date: Mon, 1 Jul 2013 10:54:39 -0700 Subject: [PATCH] Bug 888303 - Don't send debug messages for touch events to the log, a=test-only --- testing/marionette/marionette-listener.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testing/marionette/marionette-listener.js b/testing/marionette/marionette-listener.js index c7a77d81d397..0561736f6bda 100644 --- a/testing/marionette/marionette-listener.js +++ b/testing/marionette/marionette-listener.js @@ -555,10 +555,13 @@ function executeWithCallback(msg, useFinish) { function emitTouchEvent(type, touch) { let loggingInfo = "Marionette: emitting Touch event of type " + type + " to element with id: " + touch.target.id + " and tag name: " + touch.target.tagName + " at coordinates (" + touch.clientX + ", " + touch.clientY + ") relative to the viewport"; dump(loggingInfo); + /* + Disabled per bug 888303 marionetteLogObj.log(loggingInfo, "TRACE"); sendSyncMessage("Marionette:shareData", {log: elementManager.wrapValue(marionetteLogObj.getLogs())}); marionetteLogObj.clearLogs(); + */ let domWindowUtils = curWindow.QueryInterface(Components.interfaces.nsIInterfaceRequestor).getInterface(Components.interfaces.nsIDOMWindowUtils); domWindowUtils.sendTouchEvent(type, [touch.identifier], [touch.screenX], [touch.screenY], [touch.radiusX], [touch.radiusY], [touch.rotationAngle], [touch.force], 1, 0); } @@ -573,10 +576,13 @@ function emitTouchEvent(type, touch) { function emitMouseEvent(doc, type, elClientX, elClientY, detail, button) { let loggingInfo = "Marionette: emitting Mouse event of type " + type + " at coordinates (" + elClientX + ", " + elClientY + ") relative to the viewport"; dump(loggingInfo); + /* + Disabled per bug 888303 marionetteLogObj.log(loggingInfo, "TRACE"); sendSyncMessage("Marionette:shareData", {log: elementManager.wrapValue(marionetteLogObj.getLogs())}); marionetteLogObj.clearLogs(); + */ detail = detail || 1; button = button || 0; let win = doc.defaultView;