Bug 1107706: Part 15: Fix emulator callbacks for content process

This commit is contained in:
Andreas Tolfsen 2015-03-23 15:40:51 +00:00
parent 7af4fbe519
commit 7b1907f4e4

View File

@ -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);
},
};