Update web-platform-tests to revision 2b758296541cf4f2209b8c2352cf6c7890c97be3

This commit is contained in:
WPT Sync Bot 2018-10-22 21:28:54 -04:00
parent 2304f02123
commit 835d593cd0
118 changed files with 3269 additions and 703 deletions

View file

@ -20,10 +20,10 @@ Or to run in a specified copy of Firefox:
./wpt run --binary ~/local/firefox/firefox firefox dom/historical.html
`./wpt run --help` lists the supported products.
For details on the supported products and a large number of other options for
customising the test run, see `./wpt run --help`.
customising the test run:
./wpt run --help
Additional browser-specific documentation:

View file

@ -54,6 +54,12 @@ themselves precede any test type flag, but are otherwise unordered.
: (js files only) Indicates that the file generates tests in which it
is [run in multiple scopes][multi-global-tests].
`.optional`
: Indicates that a test makes assertions about optional behavior in a
specification, typically marked by the [RFC 2119] "MAY" or "OPTIONAL"
keywords. This flag should not be used for "SHOULD"; such requirements
can be tested with regular tests, like "MUST".
`.tentative`
: Indicates that a test makes assertions not yet required by any specification,
or in contradiction to some specification. This is useful when implementation
@ -64,3 +70,4 @@ themselves precede any test type flag, but are otherwise unordered.
[server-side substitution]: https://wptserve.readthedocs.io/en/latest/pipes.html#sub
[multi-global-tests]: {{ site.baseurl }}{% link _writing-tests/testharness.md %}#multi-global-tests
[RFC 2119]: https://tools.ietf.org/html/rfc2119

View file

@ -18,6 +18,15 @@ the global scope.
NB: presently, testdriver.js only works in the top-level test browsing
context (and not therefore in any frame or window opened from it).
### action_sequence
Usage: `test_driver.action_sequence(actions)`
* `actions`: <[Array]<[Object]>> an array of Action objects`
* `action`: <[Object]> A single action. See [spec](https://www.w3.org/TR/webdriver/#actions) for format
This function causes a sequence of actions to be sent to the browser. It is based of the [WebDriver API](https://www.w3.org/TR/webdriver/#actions).
The action can be a keyboard action, a pointer action or a pause. It returns a `Promise` that
resolves after the actions have been sent or rejects if an error was thrown.
### bless
Usage: `test_driver.bless(intent, action)`
@ -80,13 +89,5 @@ 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).
For example, to send the tab key you would send "\uE004".
### `test_driver.action_sequence(actions)`
- `actions` <[Array]<[Object]>> an array of Action objects`
- `action` <[Object]> A single action. See [spec](https://www.w3.org/TR/webdriver/#actions) for format
This function causes a sequence of actions to be sent to the browser. It is based of the [WebDriver API](https://www.w3.org/TR/webdriver/#actions).
The action can be a keyboard action, a pointer action or a pause. It returns a `Promise` that
resolves after the actions have been sent or rejects if an error was thrown.
[activation]: https://html.spec.whatwg.org/multipage/interaction.html#activation
[testharness]: {{ site.baseurl }}{% link _writing-tests/testharness.md %}