ProximitySensor.https.html (832B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>ProximitySensor Test</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="help" href="https://w3c.github.io/proximity/"> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <script src="/generic-sensor/resources/generic-sensor-helpers.js"></script> 9 <script src="/generic-sensor/generic-sensor-tests.js"></script> 10 11 <script> 12 13 'use strict'; 14 15 // near: 0 stands for false, 1 stands for true, which will be convert to boolean 16 // in mock sensor 17 const kReadings = { 18 readings: [ 19 [1.12345, 2.12345, 1] 20 ], 21 expectedReadings: [ 22 [1.12345, 2.12345, true] 23 ] 24 }; 25 26 runGenericSensorTests( 27 'ProximitySensor', 28 kReadings, 29 verifyProximitySensorReading, 30 ['proximity']); 31 32 </script>