Update web-platform-tests to revision 2660fc486f7027c913863d48a8843942f0c0365e

This commit is contained in:
WPT Sync Bot 2019-09-12 10:30:30 +00:00
parent 96de31b463
commit c413a1139e
455 changed files with 8535 additions and 2067 deletions

View file

@ -4,13 +4,17 @@
'use strict';
// https://w3c.github.io/web-nfc/
const record = {
recordType: "text",
mediaType: "text/plain",
data: "Hello World",
id: "/custom/path"
};
const message = {
url: "/custom/path",
records: [{
recordType: "text",
data: "Hello World"
}]
}
records: [record]
};
idl_test(
['web-nfc'],
@ -19,6 +23,8 @@ idl_test(
idl_array.add_objects({
NFCWriter: ['new NFCWriter();'],
NFCReader: ['new NFCReader();'],
NDEFRecord: [`new NDEFRecord(${JSON.stringify(record)});`],
NDEFMessage: [`new NDEFMessage(${JSON.stringify(message)});`],
NFCReadingEvent: [`new NFCReadingEvent("reading", { message: ${JSON.stringify(message)} })`],
NFCErrorEvent: ['new NFCErrorEvent("error", { error: new DOMException() });'],
});