Closed Bug 1768162 Opened 4 years ago Closed 4 years ago

[wpt-sync] Sync PR 33961 - Change selection-not-application-textarea.html test to accommodate

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 33961 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/33961
Details from upstream follow.

Ziran Sun <zsun@igalia.com> wrote:

Change selection-not-application-textarea.html test to accommodate

platforms with different default selection direction values.

The test calls setSelectionRange(start, end [, direction]) API with
the direction argument ommitted. As per spec at
https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#textFieldSelection,
If the direction is omitted, it will be reset to be the platform default (none or forward).
The existing test script expects the direction to be "forward" only.

This patch updates the test script to be in line with spec.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/485de7b96171 [wpt PR 33961] - Change selection-not-application-textarea.html test to accommodate, a=testonly
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.