https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 0cdeea831cad1521409387c055d5f2c702a1dd88 authored by Ian Clelland on 11 April 2018, 02:30:42 UTC
Make DOMTokenList.supports() case-insensitive
Tip revision: 0cdeea8
nfc_insecure_context.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: insecure context</title>
<link rel="author" title="Intel" href="http://www.intel.com"/>
<link rel="help" href="https://w3c.github.io/web-nfc/"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/nfc_help.js"></script>
<h2>Note</h2>
<ol>
  <li>
    Run test is an insecure context, e.g. http://example.com/
  </li>
</ol>
<script>

"use strict";

test(t => {
  assert_false(isSecureContext);
  assert_false('nfc' in navigator);
}, 'navigator.nfc requires a secure context');

</script>
back to top