Update web-platform-tests to revision e9f2d000237d43f74136cfd40e5a3454f5b54b70

This commit is contained in:
WPT Sync Bot 2019-09-17 10:24:07 +00:00
parent 8bc8981ae5
commit 57465056e7
127 changed files with 18346 additions and 155 deletions

View file

@ -340,13 +340,17 @@ var WebNFCTest = (() => {
setReadingMessage(message, compatibility = 'nfc-forum') {
this.reading_messages_.push({message: message,
compatibility: toMojoNDEFCompatibility(compatibility)});
// Ignore reading if NFCPushOptions.ignoreRead is true
let ignoreRead = false;
if(this.push_options_ && this.push_options_.ignoreRead)
ignoreRead = this.push_options_.ignoreRead;
// Triggers onWatch if the new message matches existing watchers
for (let watcher of this.watchers_) {
if (matchesWatchOptions(
message, message.compatibility, watcher.options)) {
if (!ignoreRead && matchesWatchOptions(
message, toMojoNDEFCompatibility(compatibility), watcher.options)) {
this.client_.onWatch(
[watcher.id], fake_tag_serial_number,
toMojoNDEFMessage(message.message));
toMojoNDEFMessage(message));
}
}
}