Skip to content

Commit

Permalink
Bug 1678598 [wpt PR 26590] - Update interfaces/web-nfc.idl and test, …
Browse files Browse the repository at this point in the history
…a=testonly

Automatic update from web-platform-tests
Update interfaces/web-nfc.idl and test (#26590)

Closes web-platform-tests/wpt#26589
--

wpt-commits: fa166854c39cfab7f1709a1ef3a1b0bb2003d6d9
wpt-pr: 26590
  • Loading branch information
stephenmcgruer authored and sylvestre committed Dec 1, 2020
1 parent de87b1f commit 3726659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
10 changes: 2 additions & 8 deletions testing/web-platform/tests/interfaces/web-nfc.idl
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ dictionary NDEFRecordInit {

typedef (DOMString or BufferSource or NDEFMessageInit) NDEFMessageSource;

[SecureContext, Exposed=Window]
interface NDEFWriter {
constructor();

Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
interface NDEFReader : EventTarget {
constructor();
Expand All @@ -59,6 +51,8 @@ interface NDEFReader : EventTarget {
attribute EventHandler onreadingerror;

Promise<undefined> scan(optional NDEFScanOptions options={});
Promise<undefined> write(NDEFMessageSource message,
optional NDEFWriteOptions options={});
};

[SecureContext, Exposed=Window]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ idl_test(
['html', 'dom', 'WebIDL'],
idl_array => {
idl_array.add_objects({
NDEFWriter: ['new NDEFWriter();'],
NDEFReader: ['new NDEFReader();'],
NDEFRecord: [`new NDEFRecord(${JSON.stringify(record)});`],
NDEFMessage: [`new NDEFMessage(${JSON.stringify(message)});`],
Expand Down

0 comments on commit 3726659

Please sign in to comment.