Bug 1915575 - Set inputmode="none" in various tests in dom/events/tets/. r=masayuki

Similar to what we did for bug 1911892 [1], intermittent failures caused by the
situation where the software keyboard keeps opening there, we need to avoid
opening the software keyboard. In this test case,
test_deltaMode_lines_always_enabled.html, in a test case which has been already
finished before running the test in question, the software keyboard opens and
it also triggered zoom-to-focused-input, then it invoked a scrollIntoView
operation, the scroll operation pushed the test case iframe out of the viewport.

There might be other tests we need to tweak, but so far with this change the
test looks stable.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1911892

Differential Revision: https://phabricator.services.mozilla.com/D221417
This commit is contained in:
Hiroyuki Ikezoe 2024-09-13 06:08:00 +00:00
parent 7b3eb01c7f
commit e96df95f65
6 changed files with 13 additions and 9 deletions

View File

@ -276,7 +276,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=409604
<input type="text" value="test for legend" onfocus="handleFocus(event.target);" onclick="handleClick(event.target);" ></fieldset></td>
</tr>
<tr>
<td>textarea</td><td><textarea onfocus="handleFocus(event.target);" onclick="handleClick(event.target);" accesskey="m">test text</textarea></td>
<td>textarea</td><td><textarea onfocus="handleFocus(event.target);" onclick="handleClick(event.target);" accesskey="m" inputmode="none">test text</textarea></td>
</tr>
<tr>
<td>label (label invisible)</td><td><label for="txt1" accesskey="n" style="display:none"

View File

@ -139,15 +139,15 @@ function finishTests() {
</script>
</pre>
<input type="text" id="initialfocus"><br>
<input type="text" id="text" value="click before |" style="width: 95%;"><br>
<input type="text" id="text2" value="click after |" style="width: 95%;">
<input type="text" id="initialfocus" inputmode="none"><br>
<input type="text" id="text" value="click before |" style="width: 95%;" inputmode="none"><br>
<input type="text" id="text2" value="click after |" style="width: 95%;" inputmode="none">
<br>
<textarea id="area" rows="2" style="width: 95%;">
<textarea id="area" rows="2" style="width: 95%;" inputmode="none">
click before
|
</textarea><br>
<textarea id="area2" rows="2" style="width: 95%;">
<textarea id="area2" rows="2" style="width: 95%;" inputmode="none">
click after |
</textarea>
<div id="d" style="border: 1px solid black;">click before or after |</div>

View File

@ -56,6 +56,9 @@ function TestEventOrderNormal() {
input1.setAttribute('type', 'text');
input2.setAttribute('type', 'text');
input3.setAttribute('type', 'text');
input1.setAttribute('inputmode', 'none');
input2.setAttribute('inputmode', 'none');
input3.setAttribute('inputmode', 'none');
content.appendChild(input1);
content.appendChild(input2);

View File

@ -12,8 +12,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=924087
<body>
<div contenteditable><a id="editable" href="#">editable link</a></div>
<a id="noneditable" href="#">non-editable link</a>
<input>
<textarea></textarea>
<input inputmode="none">
<textarea inputmode="none"></textarea>
<pre id="test">
<script type="application/javascript">

View File

@ -13,7 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=930374
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=930374">Mozilla Bug 930374</a>
<div id="display">
<input id="input-text">
<input id="input-text" inputmode="none">
</div>
<div id="content" style="display: none">
</div>

View File

@ -10,6 +10,7 @@
<p id="display">
<input id="input"
style="position: absolute; top: 5px; left: 5px; border: solid 15px blue; width: 100px; height: 20px;"
inputmode="none"
onclick="gClickCount++;">
</p>
<div id="content" style="display: none">