https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 84ac8996de036beac765b15660cf8bc58548c93c authored by Emilio Cobos Álvarez on 12 April 2018, 20:51:01 UTC
Let overflow parse two values.
Tip revision: 84ac899
nfc_recordType_url-manual.https.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: push and watch url 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 test_message_origin = window.location.href.origin;
let desc = "Test that nfc.push and nfc.watch succeed when recordType is set to 'url'.";
let watchOptions = {
  recordType: "url",
  mediaType: "text/plain",
  url: test_message_origin
}
let message = createMessage([createUrlRecord(test_url_data)]);

testNFCMessage(message, watchOptions, desc);

</script>
back to top