https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ada36ad22e53c231d18145935b158ba4dc58c561 authored by Zhuoyu Qian on 29 March 2018, 01:09:38 UTC
Check BackgroundEdgeOrigin when check BackgroundPosition.
Tip revision: ada36ad
Magnetometer_insecure_context.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Magnetometer Test: insecure context</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://www.w3.org/TR/magnetometer/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/generic-sensor/generic-sensor-tests.js"></script>
<div id="log"></div>
<h2>Precondition</h2>
<ol>
  <li>
    Run test in an insecure context, e.g. http://example.com/.
  </li>
</ol>
<script>

runGenericSensorInsecureContext("Magnetometer");
runGenericSensorInsecureContext("UncalibratedMagnetometer");

</script>
back to top