Skip to content

Commit

Permalink
Bug 1606788 [wpt PR 21017] - [webnfc] NDEFScanOptions#mediaType being…
Browse files Browse the repository at this point in the history
… undefined means do not filter, a=testonly

Automatic update from web-platform-tests
[webnfc] NDEFScanOptions#mediaType being undefined means do not filter (#21017)

And the empty string should just match on empty.

The spec change:
w3c/web-nfc#496
w3c/web-nfc#498

BUG=520391

Change-Id: Idae55b976a6fbbdd252f6227cbe13ee50d16269c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1986632
Reviewed-by: Rijubrata Bhaumik <rijubrata.bhaumik@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Leon Han <leon.han@intel.com>
Cr-Commit-Position: refs/heads/master@{#728813}

Co-authored-by: Han Leon <leon.han@intel.com>

--

wpt-commits: 32cb1cf1ba99807715ab5a4184f62e39c47d18f7
wpt-pr: 21017
  • Loading branch information
chromium-wpt-export-bot authored and moz-wptsync-bot committed Jan 14, 2020
1 parent f7bc4b0 commit 6e47713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/web-platform/tests/resources/chromium/nfc-mock.js
Expand Up @@ -133,7 +133,7 @@ function matchesWatchOptions(message, options) {
options.recordType !== record.recordType) {
continue;
}
if (options.mediaType !== '' && options.mediaType !== record.mediaType) {
if (options.mediaType != null && options.mediaType !== record.mediaType) {
continue;
}

Expand Down

0 comments on commit 6e47713

Please sign in to comment.