Bug 1505686 [wpt PR 13978] - html: Fix an issue of type-change-state.html about selec...
commit48b40d2dd02b5141fecd312cd59854efa0aa64e1
authorKent Tamura <tkent@chromium.org>
Tue, 13 Nov 2018 13:40:28 +0000 (13 13:40 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Wed, 14 Nov 2018 13:38:08 +0000 (14 13:38 +0000)
tree4e261a73c049c847c308d919b32f7d90f9e892a2
parent155293aaaf2abe6c6d70d46a07329819db4b64ef
Bug 1505686 [wpt PR 13978] - html: Fix an issue of type-change-state.html about selectionDirection="none", a=testonly

Automatic update from web-platform-testshtml: Fix an issue of type-change-state.html about selectionDirection="none"

type-change-state.html contains assertions for the following operation in [1]:
> ..., and set its selection direction to "none".

However it had an issue that the assertions checked if
input.selectionDirection was "none". According to [2],
input.selectionDirection can be "forward" on specific platforms.

> update the element's selection direction to the given direction, unless
> the direction is "none" and the platform does not support that direction;
> in that case, update the element's selection direction to "forward".

[1] https://html.spec.whatwg.org/multipage/input.html#the-input-element:set-the-selection-direction
[2] https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#set-the-selection-direction

Change-Id: Idc1a97fbb2036e351a788a1f758b3239308d8c71
Reviewed-on: https://chromium-review.googlesource.com/c/1322264
Reviewed-by: Rakina Zata Amni <rakina@chromium.org>
Commit-Queue: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606310}

--

wpt-commits: 603b17f321fe4275050c59c87b1f3a29a33e9c96
wpt-pr: 13978
testing/web-platform/tests/html/semantics/forms/the-input-element/type-change-state.html