mirror of
https://github.com/servo/servo.git
synced 2025-08-08 15:05:35 +01:00
Update web-platform-tests to revision 422b440e0b587317e4539378b18c362a4ea7afee
This commit is contained in:
parent
dbee7f7d27
commit
0c29efe000
160 changed files with 6195 additions and 2605 deletions
|
@ -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_) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue