From 429beb26139b0b75fb10a8cdc732ada245310e01 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 14 Oct 2024 11:15:57 +0200 Subject: [PATCH 1/3] Add WebDriver extension features --- features/compute-pressure.yml | 1 + features/draft/spec/compute-pressure.yml | 25 ------------------- features/webdriver-compute-pressure.yml | 10 ++++++++ ...st => webdriver-compute-pressure.yml.dist} | 2 +- features/{draft => }/webdriver-sensors.yml | 3 +-- .../{draft => }/webdriver-sensors.yml.dist | 0 groups/compute-pressure.yml | 1 + 7 files changed, 14 insertions(+), 28 deletions(-) delete mode 100644 features/draft/spec/compute-pressure.yml create mode 100644 features/webdriver-compute-pressure.yml rename features/{draft/spec/compute-pressure.yml.dist => webdriver-compute-pressure.yml.dist} (87%) rename features/{draft => }/webdriver-sensors.yml (91%) rename features/{draft => }/webdriver-sensors.yml.dist (100%) create mode 100644 groups/compute-pressure.yml diff --git a/features/compute-pressure.yml b/features/compute-pressure.yml index a4818e2201d..8cca4c73b02 100644 --- a/features/compute-pressure.yml +++ b/features/compute-pressure.yml @@ -1,3 +1,4 @@ name: CPU compute pressure description: The `PressureObserver` API monitors CPU load, allowing you to adjust workloads in response to available computing resources. Also known as the Compute Pressure API. spec: https://w3c.github.io/compute-pressure/ +group: compute-pressure diff --git a/features/draft/spec/compute-pressure.yml b/features/draft/spec/compute-pressure.yml deleted file mode 100644 index 41f954883fb..00000000000 --- a/features/draft/spec/compute-pressure.yml +++ /dev/null @@ -1,25 +0,0 @@ -draft_date: 2024-09-09 -name: Compute Pressure Level 1 -description: TODO -spec: https://w3c.github.io/compute-pressure/ -compat_features: - - webdriver.commands.CreateVirtualPressureSource - - webdriver.commands.DeleteVirtualPressureSource - - webdriver.commands.UpdateVirtualPressureSource - -# The following features in the spec are already part of web-features: -# - CPU compute pressure: -# - api.Permissions.permission_compute-pressure -# - api.PressureObserver -# - api.PressureObserver.PressureObserver -# - api.PressureObserver.disconnect -# - api.PressureObserver.knownSources_static -# - api.PressureObserver.observe -# - api.PressureObserver.takeRecords -# - api.PressureObserver.unobserve -# - api.PressureRecord -# - api.PressureRecord.source -# - api.PressureRecord.state -# - api.PressureRecord.time -# - api.PressureRecord.toJSON -# - http.headers.Permissions-Policy.compute-pressure diff --git a/features/webdriver-compute-pressure.yml b/features/webdriver-compute-pressure.yml new file mode 100644 index 00000000000..cbdb105934a --- /dev/null +++ b/features/webdriver-compute-pressure.yml @@ -0,0 +1,10 @@ +name: WebDriver compute pressure +description: WebDriver Compute Pressure are WebDriver extension commands for creating, deleting, and updating readings for virtual pressure sources (sources that do not depend on underlying hardware or operating system support). +spec: https://w3c.github.io/compute-pressure/ +group: + - compute-pressure + - webdriver +compat_features: + - webdriver.commands.CreateVirtualPressureSource + - webdriver.commands.DeleteVirtualPressureSource + - webdriver.commands.UpdateVirtualPressureSource diff --git a/features/draft/spec/compute-pressure.yml.dist b/features/webdriver-compute-pressure.yml.dist similarity index 87% rename from features/draft/spec/compute-pressure.yml.dist rename to features/webdriver-compute-pressure.yml.dist index e02d219f4e7..8ca9817611b 100644 --- a/features/draft/spec/compute-pressure.yml.dist +++ b/features/webdriver-compute-pressure.yml.dist @@ -1,4 +1,4 @@ -# Generated from: compute-pressure.yml +# Generated from: webdriver-compute-pressure.yml # Do not edit this file by hand. Edit the source file instead! status: diff --git a/features/draft/webdriver-sensors.yml b/features/webdriver-sensors.yml similarity index 91% rename from features/draft/webdriver-sensors.yml rename to features/webdriver-sensors.yml index 00e87266c55..f108a297db5 100644 --- a/features/draft/webdriver-sensors.yml +++ b/features/webdriver-sensors.yml @@ -1,5 +1,4 @@ -draft_date: 2024-08-27 -name: WebDriver Sensors +name: WebDriver sensors description: WebDriver Sensors are WebDriver extension commands for creating, deleting, getting, and setting readings for virtual sensors (sensors that do not depend on underlying hardware or operating system support). spec: https://w3c.github.io/sensors/#automation group: diff --git a/features/draft/webdriver-sensors.yml.dist b/features/webdriver-sensors.yml.dist similarity index 100% rename from features/draft/webdriver-sensors.yml.dist rename to features/webdriver-sensors.yml.dist diff --git a/groups/compute-pressure.yml b/groups/compute-pressure.yml new file mode 100644 index 00000000000..79183337aec --- /dev/null +++ b/groups/compute-pressure.yml @@ -0,0 +1 @@ +name: Compute Pressure From 179367b3c4a8168355ed0e30f910fd360bfe94e3 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 14 Oct 2024 15:21:21 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Daniel D. Beck --- features/webdriver-compute-pressure.yml | 4 ++-- features/webdriver-sensors.yml | 4 ++-- groups/compute-pressure.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/features/webdriver-compute-pressure.yml b/features/webdriver-compute-pressure.yml index cbdb105934a..dfd406b86f0 100644 --- a/features/webdriver-compute-pressure.yml +++ b/features/webdriver-compute-pressure.yml @@ -1,5 +1,5 @@ -name: WebDriver compute pressure -description: WebDriver Compute Pressure are WebDriver extension commands for creating, deleting, and updating readings for virtual pressure sources (sources that do not depend on underlying hardware or operating system support). +name: Virtual pressure sources +description: The `CreateVirtualPressureSource` WebDriver command creates artificial sources of compute pressure for testing without the need real device sources of compute pressure. spec: https://w3c.github.io/compute-pressure/ group: - compute-pressure diff --git a/features/webdriver-sensors.yml b/features/webdriver-sensors.yml index f108a297db5..623085edebd 100644 --- a/features/webdriver-sensors.yml +++ b/features/webdriver-sensors.yml @@ -1,5 +1,5 @@ -name: WebDriver sensors -description: WebDriver Sensors are WebDriver extension commands for creating, deleting, getting, and setting readings for virtual sensors (sensors that do not depend on underlying hardware or operating system support). +name: Virtual sensors +description: The `CreateVirtualSensor` WebDriver command creates a virtual sensor for testing applications that use sensor APIs, without the need for real device sensors. spec: https://w3c.github.io/sensors/#automation group: - sensors diff --git a/groups/compute-pressure.yml b/groups/compute-pressure.yml index 79183337aec..6e3ef1f5d6a 100644 --- a/groups/compute-pressure.yml +++ b/groups/compute-pressure.yml @@ -1 +1 @@ -name: Compute Pressure +name: Compute pressure From 0017e4238a2d30ed0d8876690ee38ebe05a84206 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Mon, 14 Oct 2024 15:26:38 +0200 Subject: [PATCH 3/3] Rename files --- ...driver-compute-pressure.yml => virtual-pressure-sources.yml} | 0 ...pute-pressure.yml.dist => virtual-pressure-sources.yml.dist} | 2 +- features/{webdriver-sensors.yml => virtual-sensors.yml} | 2 +- .../{webdriver-sensors.yml.dist => virtual-sensors.yml.dist} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename features/{webdriver-compute-pressure.yml => virtual-pressure-sources.yml} (100%) rename features/{webdriver-compute-pressure.yml.dist => virtual-pressure-sources.yml.dist} (87%) rename features/{webdriver-sensors.yml => virtual-sensors.yml} (64%) rename features/{webdriver-sensors.yml.dist => virtual-sensors.yml.dist} (90%) diff --git a/features/webdriver-compute-pressure.yml b/features/virtual-pressure-sources.yml similarity index 100% rename from features/webdriver-compute-pressure.yml rename to features/virtual-pressure-sources.yml diff --git a/features/webdriver-compute-pressure.yml.dist b/features/virtual-pressure-sources.yml.dist similarity index 87% rename from features/webdriver-compute-pressure.yml.dist rename to features/virtual-pressure-sources.yml.dist index 8ca9817611b..a7ad6b63d03 100644 --- a/features/webdriver-compute-pressure.yml.dist +++ b/features/virtual-pressure-sources.yml.dist @@ -1,4 +1,4 @@ -# Generated from: webdriver-compute-pressure.yml +# Generated from: virtual-pressure-sources.yml # Do not edit this file by hand. Edit the source file instead! status: diff --git a/features/webdriver-sensors.yml b/features/virtual-sensors.yml similarity index 64% rename from features/webdriver-sensors.yml rename to features/virtual-sensors.yml index 623085edebd..d1c85ab69f2 100644 --- a/features/webdriver-sensors.yml +++ b/features/virtual-sensors.yml @@ -1,5 +1,5 @@ name: Virtual sensors -description: The `CreateVirtualSensor` WebDriver command creates a virtual sensor for testing applications that use sensor APIs, without the need for real device sensors. +description: The `CreateVirtualSensor` WebDriver command creates a virtual sensor for testing applications that use sensor APIs, without the need for real device sensors. spec: https://w3c.github.io/sensors/#automation group: - sensors diff --git a/features/webdriver-sensors.yml.dist b/features/virtual-sensors.yml.dist similarity index 90% rename from features/webdriver-sensors.yml.dist rename to features/virtual-sensors.yml.dist index 117830e5143..fa68a0776f3 100644 --- a/features/webdriver-sensors.yml.dist +++ b/features/virtual-sensors.yml.dist @@ -1,4 +1,4 @@ -# Generated from: webdriver-sensors.yml +# Generated from: virtual-sensors.yml # Do not edit this file by hand. Edit the source file instead! status: