Revision eb9f8a917a751b5bd2e4ed86840eac8b5c4445f2 authored by Brian Birtles on 15 March 2018, 06:57:09 UTC, committed by Brian Birtles on 15 March 2018, 06:57:09 UTC
This patch also drops the test that an AnimationEffectTiming object is created in the appropriate realm since it is no longer the case that a separate timing object is created.
1 parent df2153f
nfc_push_ArrayBuffer-manual.https.html
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: push ArrayBuffer message</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 });
promise_test(t => {
return navigator.nfc.push(test_buffer_data)
.then(() => {
return new Promise(resolve => {
navigator.nfc.watch(message => resolve(message))
}).then((message) => {
for (let record of message.records) {
assert_equals(record.recordType, "opaque");
assert_equals(record.mediaType, "application/octet-stream");
assert_array_equals(new Uint8Array(record.data),
new Uint8Array(test_buffer_data));
}
});
});
}, "Test that nfc.push succeeds when message is ArrayBuffer.");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...