editing/other/paste_text_with_text_transform.html requires window.testRunner and errors in every browser

Open Beginner friendly
#65,067 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
html, javascript
Domain
testing

Research direction

Start with editing/other/paste_text_with_text_transform.html and compare how nearby editing/other copy-paste tests use test_driver and the async Clipboard API. Update the test so it runs under wptrunner without requiring window.testRunner, or determine whether it belongs in WebKit LayoutTests. Done means its subtests run without a harness error in the affected browsers.

Written by the indexing model from the issue text.

Description

editing/other/paste_text_with_text_transform.html asserts at the top level that window.testRunner exists:

assert_not_equals(
  window.testRunner,
  ...
  "This test requires testRunner to read/write clipboard."

testRunner is WebKit's DumpRenderTree / WebKitTestRunner object, which no browser exposes when run by wptrunner, so the file ends with a harness ERROR in Chrome, Firefox and Safari alike and its subtests never run.

Possible fixes: read and write the clipboard through test_driver and the async Clipboard API (as other editing/other copy-paste tests do), or move the test to WebKit's LayoutTests where testRunner exists.

Dominant language
HTML
Stars
6.3k
Forks
4.1k
Avg merge
17h 53m
Merged PRs (30d)
840

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from web-platform-tests/wpt

All issues in web-platform-tests/wpt

Similar issues

More Testing & QA issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.