Bug 1237641 - Make sure the test-actor is registered before instantiating the front without a toolbox; r=ochameau draft
authorPatrick Brosset <pbrosset@mozilla.com>
Thu, 07 Jan 2016 13:16:35 -0800
changeset 319784 ad7a44a64716c820d6bd4ff49d78c4ab13374d14
parent 319776 0c13e28343dd6dd8c88d5d6fc9415e50700e4f0d
child 512649 4656edab9720952b2082afe8b04ead7c749d3d56
push id9092
push userpbrosset@mozilla.com
push dateThu, 07 Jan 2016 21:16:56 +0000
reviewersochameau
bugs1237641
milestone46.0a1
Bug 1237641 - Make sure the test-actor is registered before instantiating the front without a toolbox; r=ochameau
devtools/client/shared/test/test-actor-registry.js
--- a/devtools/client/shared/test/test-actor-registry.js
+++ b/devtools/client/shared/test/test-actor-registry.js
@@ -77,16 +77,19 @@ exports.getTestActorWithoutToolbox = Tas
     DebuggerServer.addBrowserActors();
   }
   let client = new DebuggerClient(DebuggerServer.connectPipe());
 
   let deferred = promise.defer();
   client.connect(deferred.resolve);
   yield deferred.promise;
 
+  // We also need to make sure the test actor is registered on the server.
+  yield registerTestActor(client);
+
   return getTestActor(client, tab);
 });
 
 // Fetch the content of a URI
 var request = function (uri) {
   return fetch(uri).then(({ content }) => content);
 }