Bug 1058898 - Enable e10s tests on the performance tool. r=vp

This commit is contained in:
Jordan Santell
2015-05-10 01:20:56 -07:00
parent 4f48e4d67d
commit ceac8dc058
10 changed files with 94 additions and 35 deletions

View File

@@ -11,6 +11,9 @@ const loader = Cc["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Ci.mozIJSSubScriptLoader);
let EventUtils = {};
loader.loadSubScript("chrome://marionette/content/EventUtils.js", EventUtils);
devtools.lazyGetter(this, "nsIProfilerModule", () => {
return Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler);
});
addMessageListener("devtools:test:history", function ({ data }) {
content.history[data.direction]();
@@ -103,6 +106,15 @@ addMessageListener("devtools:test:xhr", Task.async(function* ({ data }) {
sendAsyncMessage("devtools:test:xhr", responses);
}));
addMessageListener("devtools:test:profiler", function ({ data: { method, args, id }}) {
let result = nsIProfilerModule[method](...args);
sendAsyncMessage("devtools:test:profiler:response", {
data: result,
id: id
});
});
// To eval in content, look at `evalInDebuggee` in the head.js of canvasdebugger
// for an example.
addMessageListener("devtools:test:eval", function ({ data }) {