mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -58,6 +58,9 @@ below to fix all errors reported.
|
|||
element whose `content` attribute has a malformed value; **fix**: ensure
|
||||
the value of the `content` attribute starts with `?` or `#` or is empty.
|
||||
|
||||
* **MISSING-LINK**: CSS test file is missing a link to a spec. **fix**: Ensure that there is a `<link rel="help" src="[url]">` for the spec.
|
||||
* Note: `MISSING-LINK` is designed to ensure that the CSS build tool can find the tests. Note that the CSS build system is primarily used by [test.csswg.org/](http://test.csswg.org/), which doesn't use `wptserve`, so `*.any.js` and similar tests won't work there; stick with the `.html` equivalent.
|
||||
|
||||
* **MISSING-TESTHARNESSREPORT**: Test file is missing an instance of
|
||||
`<script src='/resources/testharnessreport.js'>`; **fix**: ensure each
|
||||
test file contains `<script src='/resources/testharnessreport.js'>`.
|
||||
|
|
|
@ -19,6 +19,7 @@ NB: presently, testdriver.js only works in the top-level test browsing
|
|||
context (and not therefore in any frame or window opened from it).
|
||||
|
||||
### `test_driver.click(element)`
|
||||
#### `element: a DOM Element object`
|
||||
|
||||
This function causes a click to occur on the target element (an
|
||||
`Element` object), potentially scrolling the document to make it
|
||||
|
@ -30,5 +31,21 @@ Note that if the element to be clicked does not have a unique ID, the
|
|||
document must not have any DOM mutations made between the function
|
||||
being called and the promise settling.
|
||||
|
||||
### `test_driver.send_keys(element, keys)`
|
||||
#### `element: a DOM Element object`
|
||||
#### `keys: string to send to the element`
|
||||
|
||||
This function causes the string `keys` to be send to the target
|
||||
element (an `Element` object), potentially scrolling the document to
|
||||
make it possible to send keys. It returns a `Promise` that resolves
|
||||
after the keys have been send or rejects if the keys cannot be sent
|
||||
to the element.
|
||||
|
||||
Note that if the element that's keys need to be send 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 (here)[https://w3c.github.io/webdriver/webdriver-spec.html#keyboard-actions].
|
||||
For example, to send the tab key you would send "\uE004".
|
||||
|
||||
[testharness]: {{ site.baseurl }}{% link _writing-tests/testharness.md %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue