tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

sensor-data.js (606B)


      1 'use strict';
      2 
      3 const kGyroscopeSensorData = {
      4  sensorName: 'Gyroscope',
      5  permissionName: 'gyroscope',
      6  testDriverName: 'gyroscope',
      7  featurePolicyNames: ['gyroscope']
      8 };
      9 
     10 // Due to the gyroscope input values being rounded using a precision of
     11 // 0.1 deg/sec, the expectedReadings and expectedRemappedReadings contain
     12 // a significant number of decimal places.
     13 const kGyroscopeReadings = {
     14  readings: [
     15    { x: 1, y: 2, z: 3 }
     16  ],
     17  expectedReadings: [
     18    { x: 1.00007366, y: 2.00014732, z: 3.00022098 }
     19  ],
     20  expectedRemappedReadings: [
     21    { x: -2.00014732, y: 1.00007366, z: 3.00022098 }
     22  ]
     23 };