https://github.com/web-platform-tests/wpt
Raw File
Tip revision: fb1aee90f011e95e3eaceb5b41537ced1925e29f authored by Fuqiao Xue on 09 April 2018, 14:15:36 UTC
[css-values] Typo fixes
Tip revision: fb1aee9
nfc_recordType_opaque-manual.https.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: push and watch opaque 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 'opaque'."
let watchOptions = {
  recordType : "opaque",
  mediaType : "application/octet-stream",
  url : ""
}
let message = createMessage([createOpaqueRecord(test_buffer_data)]);

testNFCMessage(message, watchOptions, desc);

</script>
back to top