Update web-platform-tests to revision 422b440e0b587317e4539378b18c362a4ea7afee

This commit is contained in:
WPT Sync Bot 2020-01-09 08:23:47 +00:00
parent dbee7f7d27
commit 0c29efe000
160 changed files with 6195 additions and 2605 deletions

View file

@ -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;
}
@ -145,8 +145,11 @@ function matchesWatchOptions(message, options) {
}
function createNDEFError(type) {
return { error: type ?
new device.mojom.NDEFError({ errorType: type }) : null };
return {
error: type ?
new device.mojom.NDEFError({errorType: type, errorMessage: ''}) :
null
};
}
var WebNFCTest = (() => {
@ -357,7 +360,10 @@ var WebNFCTest = (() => {
simulateNonNDEFTagDiscovered() {
// Notify NotSupportedError to all active readers.
if (this.watchers_.length != 0) {
this.client_.onError(device.mojom.NDEFErrorType.NOT_SUPPORTED);
this.client_.onError(new device.mojom.NDEFError({
errorType: device.mojom.NDEFErrorType.NOT_SUPPORTED,
errorMessage: ''
}));
}
// Reject the pending push with NotSupportedError.
if (this.pending_promise_func_) {