tor-browser

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

t028-manual.https.html (1229B)


      1 <!DOCTYPE html>
      2 <html>
      3  <head>
      4    <title>The interval property must be expressed in milliseconds. It must be a constant, to simplify filtering of the data by the Web application</title>
      5    <meta name=viewport content="width=device-width, maximum-scale=1.0">
      6    <script src="/resources/testharness.js"></script>
      7    <script src="/resources/testharnessreport.js"></script>
      8    <link rel="author" title="Mosquito FP7">
      9    <link rel="reviewer author" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2013-10-14 -->
     10  </head>
     11  <body>
     12    <p>Move the device to run the test.</p>
     13    <div id="log"></div>
     14    <script>
     15      var t = async_test("The interval property must be different to zero and must be a constant");
     16      var inter1 = 0;
     17      var inter2 = 0;
     18      var run = false;
     19      window.addEventListener("devicemotion", function(e) {
     20        if (!run) {
     21          run = true;
     22          t.step(function() {
     23            if (inter1 == 0) {
     24              inter2 = e.interval;
     25            }
     26            inter1 = e.interval;
     27            assert_not_equals(inter1, 0);
     28            assert_not_equals(inter1, inter2);
     29          });
     30          t.done();
     31        }
     32      }, false);
     33  </script>
     34  </body>
     35 </html>