From 375e23f2f60aeccc8fc7cc6f62dc07aa1dea8f3b Mon Sep 17 00:00:00 2001 From: Stephen McGruer Date: Tue, 24 Nov 2020 07:33:50 -0500 Subject: [PATCH 1/2] RFC 73 : Add testdriver.js support for the `timeZone` WebDriver command. --- rfcs/testdriver_set_time_zone.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 rfcs/testdriver_set_time_zone.md diff --git a/rfcs/testdriver_set_time_zone.md b/rfcs/testdriver_set_time_zone.md new file mode 100644 index 00000000..6ea99ca2 --- /dev/null +++ b/rfcs/testdriver_set_time_zone.md @@ -0,0 +1,21 @@ +# RFC 73 : Add testdriver.js support for the `timeZone` WebDriver command. + +## Summary +Add testdriver.js support for the `timeZone` WebDriver extension, which will +allow setting the current time zone in the browser. This extension is specced +as part of the [HTML spec](https://github.com/whatwg/html/pull/3047). + +## Details +Changing the time zone is not available via normal web APIs. To test the effect +of changing time zone on the `ontimezonechange` event there needs to be a way +to instruct the browser to act as if the time zone is changing: this WebDriver +extension provides that ability. + +## Risks +* The WebDriver endpoint is new and may still require changes, which would then + affect the testdriver.js API as well. +* The WebDriver endpoint is very specific and will likely only be used for a + small set of tests, so the maintenance to value ratio may be low. + * That said, testdriver.js is designed to make supporting a command + low-maintenance, and to not require every executor to support every + testdriver.js command. From 68cbd5e86ed1e809ef6d5c98446d69dfbb245561 Mon Sep 17 00:00:00 2001 From: Stephen McGruer Date: Tue, 24 Nov 2020 11:07:27 -0500 Subject: [PATCH 2/2] Update rfcs/testdriver_set_time_zone.md Co-authored-by: Mathias Bynens --- rfcs/testdriver_set_time_zone.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/testdriver_set_time_zone.md b/rfcs/testdriver_set_time_zone.md index 6ea99ca2..38baab6c 100644 --- a/rfcs/testdriver_set_time_zone.md +++ b/rfcs/testdriver_set_time_zone.md @@ -7,7 +7,7 @@ as part of the [HTML spec](https://github.com/whatwg/html/pull/3047). ## Details Changing the time zone is not available via normal web APIs. To test the effect -of changing time zone on the `ontimezonechange` event there needs to be a way +of changing time zone on the `timezonechange` event there needs to be a way to instruct the browser to act as if the time zone is changing: this WebDriver extension provides that ability.