Bug 1409468: Test for telemetry hasTouchbar environment property. r=mstange
authorStephen A Pohl <spohl.mozilla.bugs@gmail.com>
Tue, 17 Oct 2017 15:33:27 -0400
changeset 386679 7cb727e675319191e4e86a7b3c1348cabd30af3b
parent 386678 7a6b39895ac2393514d2fba5cb60d0e2b9c47c72
child 386680 2d2187c138bc8d7c485bd8b64f89ca4b2d0f0804
push id96291
push userspohl@mozilla.com
push dateTue, 17 Oct 2017 19:33:35 +0000
treeherdermozilla-inbound@7cb727e67531 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1409468
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1409468: Test for telemetry hasTouchbar environment property. r=mstange
toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
--- a/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
@@ -655,16 +655,21 @@ function checkSystemSection(data) {
     }
 
     let features = gfxInfo.getFeatures();
     Assert.equal(features.compositor, gfxData.features.compositor);
     Assert.equal(features.gpuProcess.status, gfxData.features.gpuProcess.status);
     Assert.equal(features.opengl, gfxData.features.opengl);
     Assert.equal(features.webgl, gfxData.features.webgl);
   } catch (e) {}
+
+  if (gIsMac) {
+    Assert.equal(typeof data.system.hasTouchbar, "boolean",
+      "hasTouchbar must be available on Mac and have the correct type.");
+  }
 }
 
 function checkActiveAddon(data, partialRecord) {
   let signedState = mozinfo.addon_signing ? "number" : "undefined";
   // system add-ons have an undefined signState
   if (data.isSystem)
     signedState = "undefined";