Bug 1432416 - Use DAMP test helper for inspector.layout.open;r=ochameau draft
authorJulian Descottes <jdescottes@mozilla.com>
Tue, 20 Feb 2018 11:47:02 +0100
changeset 759861 6156916b03b7df37b44c1114e6dbc4813ed3deb2
parent 759860 aac3059bd459c4c6570248c8a1724a0a43cb27d4
child 759862 e9710d484d67c5649b19043840719862daab748c
push id100497
push userjdescottes@mozilla.com
push dateMon, 26 Feb 2018 19:26:03 +0000
reviewersochameau
bugs1432416
milestone60.0a1
Bug 1432416 - Use DAMP test helper for inspector.layout.open;r=ochameau MozReview-Commit-ID: 5CPG1mvX6gP
testing/talos/talos/tests/devtools/addon/content/damp.js
--- a/testing/talos/talos/tests/devtools/addon/content/damp.js
+++ b/testing/talos/talos/tests/devtools/addon/content/damp.js
@@ -592,23 +592,20 @@ async _consoleOpenWithCachedMessagesTest
             new Array(${NODES}).join("<div></div>") +
             new Array(${GRID_NODES}).join("<div style='display:grid'></div>");
           content.document.body.appendChild(div);
           sendSyncMessage("setup-test-done");
         }`
       ) + ")()", false);
     });
 
-    // Open the toolbox and record the time.
-    let start = performance.now();
+    // Record the time needed to open the toolbox.
+    let test = this.runTest("inspector.layout.open");
     await this.openToolbox("inspector");
-    this._results.push({
-      name: "inspector.layout.open",
-      value: performance.now() - start
-    });
+    test.done();
 
     await this.closeToolbox();
 
     // Restore sidebar tab preference.
     Services.prefs.setCharPref("devtools.inspector.activeSidebar", sidebarTab);
 
     await this.testTeardown();
   },