Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js

Issue 1486043002: [webnfc] Implement push method for Android nfc mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@step_6_add_mojo_service_CL
Patch Set: Move WindowAndroidChangedObserver to other observers in content layer Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/nfc/nfc.mojom ('k') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
diff --git a/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js b/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
index 165da0dbee3990f3264a71384fc1cc9a939e3bfe..886a9898346d7b7ed23cf0d05fda83dfeb3a30a6 100644
--- a/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
+++ b/third_party/WebKit/LayoutTests/nfc/resources/nfc-helpers.js
@@ -128,13 +128,13 @@ function nfc_mocks(mojo) {
// Compares NFCRecords that were provided / received by the mock service.
function compareNFCRecords(providedRecord, receivedRecord) {
assert_equals(toMojoNFCRecordType(providedRecord.recordType),
- receivedRecord.recordType);
+ receivedRecord.record_type);
// Compare media types without charset.
// Charset should be compared when watch method is implemented, in order
// to check that written and read strings are equal.
assert_equals(providedRecord.mediaType,
- receivedRecord.mediaType.substring(0, providedRecord.mediaType.length));
+ receivedRecord.media_type.substring(0, providedRecord.mediaType.length));
assert_false(toMojoNFCRecordType(providedRecord.recordType) ==
nfc.NFCRecordType.EMPTY);
@@ -147,9 +147,9 @@ function nfc_mocks(mojo) {
// received by the mock mojo service.
function assertNFCPushOptionsEqual(provided, received) {
if (provided.ignoreRead !== undefined)
- assert_equals(provided.ignoreRead, !!+received.ignoreRead);
+ assert_equals(provided.ignoreRead, !!+received.ignore_read);
else
- assert_equals(!!+received.ignoreRead, true);
+ assert_equals(!!+received.ignore_read, true);
if (provided.timeout !== undefined)
assert_equals(provided.timeout, received.timeout);
« no previous file with comments | « device/nfc/nfc.mojom ('k') | third_party/WebKit/Source/modules/nfc/NFC.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698