Revision 859e67ce666775ccd471e4693d85d4e90989e270 authored by Bernie Thompson on 29 March 2018, 17:39:39 UTC, committed by Chromium WPT Sync on 29 March 2018, 17:39:39 UTC
BUG=chromium:825100
TEST=None

This reverts commit f2d2fe87028de36a489f7db3f5fb28da2e9d9b2b.

Change-Id: I01e5962e0b52ad63feca36513db19253a5ade530
1 parent a149250
Raw File
t006-manual.html
<!DOCTYPE html>
<html>
  <head>
    <title>Rotate the device frame around its z axis</title>
    <meta name=viewport content="width=device-width, maximum-scale=1.0">
    <script src="/resources/testharness.js"></script>
    <script src="/resources/testharnessreport.js"></script>
    <link rel="author" title="Mosquito FP7">
    <link rel="reviewer author" title="Zhiqiang Zhang" href="mailto:zhiqiang.zhang@intel.com"> <!-- 2013-10-12 -->
  </head>
  <body>
    <p>Rotate the device frame around its z axis to run the test.</p>
    <div id="log"></div>
    <script>
      var t1 = async_test("Alpha is in [0, 360)");
      var run = false;
      window.addEventListener("deviceorientation", function(e) {
        if (!run && e.alpha !== null) {
          run = true;
          t1.step(function() {
            assert_greater_than_equal(e.alpha, 0);
            assert_less_than(e.alpha, 360);
          });
          t1.done();
        }
      }, false);
    </script>
  </body>
</html>

back to top