diff --git a/testing/marionette/simpletest.js b/testing/marionette/simpletest.js index 7b778816920..128d902e000 100644 --- a/testing/marionette/simpletest.js +++ b/testing/marionette/simpletest.js @@ -37,6 +37,8 @@ Marionette.prototype = { "getLogs", "generate_results", "waitFor", + "runEmulatorCmd", + "runEmulatorShell", "TEST_PASS", "TEST_KNOWN_FAIL", "TEST_UNEXPECTED_FAIL", @@ -201,4 +203,14 @@ Marionette.prototype = { } this.window.setTimeout(this.waitFor.bind(this), 100, callback, test, deadline); }, + + runEmulatorCmd: function runEmulatorCmd(cmd, callback) { + this.heartbeatCallback(); + this.scope.runEmulatorCmd(cmd, callback); + }, + + runEmulatorShell: function runEmulatorShell(args, callback) { + this.heartbeatCallback(); + this.scope.runEmulatorShell(args, callback); + }, };