window_composition_text_querycontent.xhtml is not correctly testing relative insertion points
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox85 | --- | fixed |
People
(Reporter: standard8, Assigned: masayuki)
References
Details
Attachments
(1 file)
In bug 1656280 we are looking at enabling more ESLint rules on widget/tests
. One of the rules has picked up that widget/tests/window_composition_text_querycontent.xhtml
is currently broken:
if (!checkContentRelativeToSelection(0, 1, 0, "0", "runQueryContentEventRelativeToInsertionPoint[0-5]", "#1") ||
!checkContentRelativeToSelection(-1, 1, 0, "0", "runQueryContentEventRelativeToInsertionPoint[0-5]", "#2") ||
!checkContentRelativeToSelection(1, 1, 1, "1", "runQueryContentEventRelativeToInsertionPoint[0-5]", "#3") ||
!checkContentRelativeToSelection(5, 10, 5, "56789", "runQueryContentEventRelativeToInsertionPoint[0-5]", "#4") ||
!checkContentRelativeToSelection(10, 1, 10, "", "runQueryContentEventRelativeToInsertionPoint[0-5]"), "#5") {
return;
}
The last part of that statement should have the , "#5"
within the checkContentRelativeToSelection
arguments.
If we try and change it, then other parts of the tests break. It is unclear what to do to fix those.
This test was added by bug 1275528.
Updated•4 years ago
|
Inheriting the priority from the meta bug.
Masayuki: can you please set the severity for this ticket (and re-prioritize it, if needed)?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 3•4 years ago
|
||
This is simple mistake at writing the test.
And also, once fixing the mistake, another bug appears. That is, the second
composition string is not "b", but the following code assumes so. Therefore,
this fixes it too.
Depends on D97269
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/8a95095384a5 Fix the mistake in `runQueryContentEventRelativeToInsertionPoint` in `window_composition_text_querycontent.xhtml` r=m_kato
Comment 5•4 years ago
|
||
bugherder |
Description
•