Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webnfc] Add NDEFRecord and NDEFMessage constructors in idl tests #18923

Merged
merged 3 commits into from Sep 9, 2019

Conversation

Honry
Copy link
Contributor

@Honry Honry commented Sep 9, 2019

No description provided.

@Honry
Copy link
Contributor Author

Honry commented Sep 9, 2019

@leonhsl, PTAL.

@@ -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(record)}]);`],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[${JSON.stringify(record)}] --> ${JSON.stringify(message)} ?

Copy link
Contributor Author

@Honry Honry Sep 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, my bad. Fixed.

@@ -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)}]);`],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No [] for embracing ${JSON.stringify(message)}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. 😳

@Honry
Copy link
Contributor Author

Honry commented Sep 9, 2019

@leonhsl, thanks!

@Honry Honry merged commit 8ed718b into web-platform-tests:master Sep 9, 2019
@Honry Honry deleted the nfc-idl branch September 9, 2019 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants