https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 9281e3c0d16246473fd97107aa0afc893decc100 authored by Anne van Kesteren on 03 May 2018, 06:41:13 UTC
cleanup
Tip revision: 9281e3c
nfc_recordType_empty-manual.https.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: push and watch empty records</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>
<meta name="flags" content="interact">
<meta name="timeout" content="long">

<p>Tap an NFC tag to the test device with NFC support.</p>

<p>Note: All the actions need to be done in 60 seconds, otherwise it will get TIMEOUT.</p>

<div id="log"></div>

<script>

"use strict";

setup({ explicit_timeout: true });

let desc = "Test that nfc.push and nfc.watch succeed when recordType is set to 'empty'.";
let watchOptions = {
  recordType: "empty",
  mediaType: "",
  url: ""
}
let message = createMessage([createRecord('empty', '')]);

testNFCMessage(message, watchOptions, desc);

</script>
back to top