Skip to content

Commit f2dd4d7

Browse files
Add interfaces/idle-detection.idl and update test (web-platform-tests#26414)
Closes web-platform-tests#26360
1 parent 13c7c7d commit f2dd4d7

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

idle-detection/idlharness.https.window.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'use strict';
99

1010
idl_test(
11-
['idle-detection.tentative'],
11+
['idle-detection'],
1212
['dom', 'html'],
1313
async (idl_array, t) => {
1414
await test_driver.set_permission({ name: 'idle-detection' }, 'granted', false);

idle-detection/resources/idlharness-worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ importScripts("/resources/testharness.js");
44
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
55

66
idl_test(
7-
['idle-detection.tentative'],
7+
['idle-detection'],
88
['dom', 'html'],
99
async (idl_array, t) => {
1010
self.idle = new IdleDetector();
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
dictionary IdleOptions {
2-
[EnforceRange] unsigned long threshold;
3-
AbortSignal signal;
4-
};
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content was automatically extracted by Reffy into webref
3+
// (https://github.com/w3c/webref)
4+
// Source: Idle Detection API (https://wicg.github.io/idle-detection/)
55

66
enum UserIdleState {
77
"active",
@@ -13,14 +13,19 @@ enum ScreenIdleState {
1313
"unlocked"
1414
};
1515

16+
dictionary IdleOptions {
17+
[EnforceRange] unsigned long long threshold;
18+
AbortSignal signal;
19+
};
20+
1621
[
1722
SecureContext,
18-
Exposed=(Window,Worker)
23+
Exposed=(Window,DedicatedWorker)
1924
] interface IdleDetector : EventTarget {
2025
constructor();
2126
readonly attribute UserIdleState? userState;
2227
readonly attribute ScreenIdleState? screenState;
2328
attribute EventHandler onchange;
2429
[Exposed=Window] static Promise<PermissionState> requestPermission();
25-
Promise<any> start(optional IdleOptions options = {});
30+
Promise<void> start(optional IdleOptions options = {});
2631
};

0 commit comments

Comments
 (0)