mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 2660fc486f7027c913863d48a8843942f0c0365e
This commit is contained in:
parent
96de31b463
commit
c413a1139e
455 changed files with 8535 additions and 2067 deletions
|
@ -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() });'],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue