Update web-platform-tests to revision 4688078c2cc6e81651b220f3c1944d956f63046b

This commit is contained in:
WPT Sync Bot 2019-04-05 21:41:37 -04:00
parent e7b65c42c4
commit ce9f8f32f1
53 changed files with 1900 additions and 88 deletions

View file

@ -11,13 +11,19 @@ enum WakeLockType { "screen", "system" };
[Constructor(WakeLockType type), SecureContext, Exposed=(DedicatedWorker,Window)]
interface WakeLock : EventTarget {
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
readonly attribute WakeLockType type;
readonly attribute boolean active;
attribute EventHandler onactivechange;
Promise<void> request(optional WakeLockRequestOptions options);
static sequence<WakeLock> query(optional WakeLockQueryFilter filter);
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
};
dictionary WakeLockRequestOptions {
AbortSignal? signal;
};
dictionary WakeLockQueryFilter {
WakeLockType? type;
boolean? active;
};