From 39dd19c9c479be5bca7ca79f8dbd6b11b682bfc6 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 11 Jun 2020 23:40:47 +0000 Subject: [PATCH] Bug 1642627 [wpt PR 23911] - [webdriver] normalize and fix links to the WebDriver spec, a=testonly Automatic update from web-platform-tests [webdriver] normalize and fix links to the WebDriver spec (#23911) Spotted while looking for incoming links to the spec: https://github.com/w3c/webdriver/issues/1462#issuecomment-637441468 (#dfn-set-window-rect changed to #set-window-rect for consistency, not to enable the ID to be changed.) -- wpt-commits: 5d0dcf0142d07916584db9c76c2fdec02833e959 wpt-pr: 23911 Differential Revision: https://phabricator.services.mozilla.com/D78794 UltraBlame original commit: 6572082b695a7a149a6a715b1cb26f9982ec394b --- .../tests/css/compositing/test-plan/test-plan.html | 4 +--- .../docs/writing-tests/testdriver-extension-tutorial.md | 8 ++++---- .../web-platform/tests/docs/writing-tests/testdriver.md | 2 +- testing/web-platform/tests/tools/webdriver/README.md | 2 +- testing/web-platform/tests/webdriver/README.md | 2 +- .../tests/webdriver/tests/perform_actions/support/keys.py | 2 +- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/testing/web-platform/tests/css/compositing/test-plan/test-plan.html b/testing/web-platform/tests/css/compositing/test-plan/test-plan.html index b09b10cff107b..fac0a0b3d6d91 100644 --- a/testing/web-platform/tests/css/compositing/test-plan/test-plan.html +++ b/testing/web-platform/tests/css/compositing/test-plan/test-plan.html @@ -214,9 +214,7 @@

testharness.js). Even where manual tests are absolutely necessary they should be written so that they can be - easily automated – as there are on-going efforts to make - WebDriver [webdriver] automated tests a first class citizen in W3C - testing. This means that even if a manual test requires user + easily automated. This means that even if a manual test requires user interaction, the validation or PASS/FAIL conditions should still be clear enough as to allow automatic validation if said interaction is later automated. diff --git a/testing/web-platform/tests/docs/writing-tests/testdriver-extension-tutorial.md b/testing/web-platform/tests/docs/writing-tests/testdriver-extension-tutorial.md index 92ce939f09f54..a2d42e008c1bc 100644 --- a/testing/web-platform/tests/docs/writing-tests/testdriver-extension-tutorial.md +++ b/testing/web-platform/tests/docs/writing-tests/testdriver-extension-tutorial.md @@ -9,7 +9,7 @@ We assume the following in this writeup: ## Introduction! -Let's implement window resizing. We can do this via the [Set Window Rect](https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect) command in WebDriver. +Let's implement window resizing. We can do this via the [Set Window Rect](https://w3c.github.io/webdriver/#set-window-rect) command in WebDriver. First, we need to think of what the API will look like a little. We will be using WebDriver and Marionette for this, so we can look and see that they take in x, y coordinates, width and height integers. @@ -30,7 +30,7 @@ window.test_driver = { * Triggers browser window to be resized and relocated * * This matches the behaviour of the {@link - * https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect|WebDriver + * https://w3c.github.io/webdriver/#set-window-rect|WebDriver * Set Window Rect command}. * * @param {Integer} x - The x coordinate of the top left of the window @@ -56,7 +56,7 @@ window.test_driver_internal = { * Triggers browser window to be resized and relocated * * This matches the behaviour of the {@link - * https://w3c.github.io/webdriver/webdriver-spec.html#dfn-set-window-rect|WebDriver + * https://w3c.github.io/webdriver/#set-window-rect|WebDriver * Set Window Rect command}. * * @param {Integer} x - The x coordinate of the top left of the window @@ -325,7 +325,7 @@ class GetWindowRectAction(object): return self.protocol.get_window_rect.get_window_rect() ``` -The WebDriver command will return a [WindowRect object](https://www.w3.org/TR/webdriver1/#dfn-window-rect), which is a dictionary with keys `x`, `y`, `width`, and `height`. +The WebDriver command will return a [WindowRect object](https://w3c.github.io/webdriver/#dfn-window-rect), which is a dictionary with keys `x`, `y`, `width`, and `height`. ```python class WebDriverGetWindowRectProtocolPart(GetWindowRectProtocolPart): def get_window_rect(self): diff --git a/testing/web-platform/tests/docs/writing-tests/testdriver.md b/testing/web-platform/tests/docs/writing-tests/testdriver.md index 4c28b88711041..63608a71c2783 100644 --- a/testing/web-platform/tests/docs/writing-tests/testdriver.md +++ b/testing/web-platform/tests/docs/writing-tests/testdriver.md @@ -124,7 +124,7 @@ Note that if the element that the keys need to be sent to does not have a unique ID, the document must not have any DOM mutations made between the function being called and the promise settling. -To send special keys, one must send the respective key's codepoint. Since this uses the WebDriver protocol, you can find a [list for code points to special keys in the spec](https://w3c.github.io/webdriver/webdriver-spec.html#keyboard-actions). +To send special keys, one must send the respective key's codepoint. Since this uses the WebDriver protocol, you can find a [list for code points to special keys in the spec](https://w3c.github.io/webdriver/#keyboard-actions). For example, to send the tab key you would send "\uE004". [activation]: https://html.spec.whatwg.org/multipage/interaction.html#activation diff --git a/testing/web-platform/tests/tools/webdriver/README.md b/testing/web-platform/tests/tools/webdriver/README.md index 2795ff1fcf39f..9433aaa926d6d 100644 --- a/testing/web-platform/tests/tools/webdriver/README.md +++ b/testing/web-platform/tests/tools/webdriver/README.md @@ -1,7 +1,7 @@ # WebDriver client for Python This package provides Python bindings -that conform to the [W3C WebDriver standard](https://w3c.github.io/webdriver/webdriver-spec.html), +that conform to the [W3C WebDriver standard](https://w3c.github.io/webdriver/), which specifies a remote control protocol for web browsers. These bindings are written with determining diff --git a/testing/web-platform/tests/webdriver/README.md b/testing/web-platform/tests/webdriver/README.md index 78d9aba7b9bc0..67bb294d6e35a 100644 --- a/testing/web-platform/tests/webdriver/README.md +++ b/testing/web-platform/tests/webdriver/README.md @@ -2,7 +2,7 @@ Herein lies a set of conformance tests for the W3C web browser automation specification -known as [WebDriver](http://w3c.github.io/webdriver/webdriver-spec.html). +known as [WebDriver](http://w3c.github.io/webdriver/). The purpose of these tests is determine implementation compliance so that different driver implementations can determine whether they meet the recognized standard. diff --git a/testing/web-platform/tests/webdriver/tests/perform_actions/support/keys.py b/testing/web-platform/tests/webdriver/tests/perform_actions/support/keys.py index 9120e4d7288f2..fe454b9daf9de 100644 --- a/testing/web-platform/tests/webdriver/tests/perform_actions/support/keys.py +++ b/testing/web-platform/tests/webdriver/tests/perform_actions/support/keys.py @@ -26,7 +26,7 @@ class Keys(object): """ Set of special keys codes. - See also https://w3c.github.io/webdriver/#h-keyboard-actions + See also https://w3c.github.io/webdriver/#keyboard-actions """ NULL = u"\ue000"