Closed Bug 1797393 Opened 2 years ago Closed 2 years ago

Split and robustify browser text tests

Categories

(Core :: Disability Access APIs, task)

task

Tracking

()

RESOLVED FIXED
108 Branch
Tracking Status
firefox108 --- fixed

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

(Whiteboard: [ctw-m3])

Attachments

(3 files)

browser_caching_text.js is a sprawling mess, there are also a couple of intermittent failures in there when caching is on.

Layout can trigger several text attribute changed events. We need to
wait until we get the correct one before continuing the test.

Depends on D160299

For some reason the default monospace font in Linux is not actually
monospaced and a linebreak is not guaranteed.

Depends on D160300

Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/3c0193df13d2 P1: Split and rename browser text tests. r=Jamie https://hg.mozilla.org/integration/autoland/rev/a833abbbc1a7 P2: Robustify spelling error text test. r=Jamie https://hg.mozilla.org/integration/autoland/rev/92b3f4f74412 P3: Explicitly assign font name to text area in linebreak test. r=Jamie

Backed out for causing mochitest failures in accessible/tests/browser/e10s/browser_text_caret.js

Backout link: https://hg.mozilla.org/integration/autoland/rev/b059d0bcdfb0690292ff654acfdaf5233064ae86

Push with failures

Failure log

INFO - Buffered messages finished
[task 2022-10-28T19:31:14.731Z] 19:31:14     INFO - TEST-UNEXPECTED-FAIL | accessible/tests/browser/e10s/browser_text_caret.js | getTextAtOffset (word start): wrong text (got '', expected: 'cd '), offset: -2, id: [DOM node id: textarea, role: entry, address: [xpconnect wrapped (nsIAccessible, nsIAccessibleText)]]; - 
[task 2022-10-28T19:31:14.731Z] 19:31:14     INFO - Stack trace:
Flags: needinfo?(eitan)
Attachment #9300244 - Attachment description: Bug 1797393 - P1: Split and rename browser text tests. r?Jamie → Bug 1797393 - P1: Split and rename browser text tests. r=Jamie
Attachment #9300245 - Attachment description: Bug 1797393 - P2: Robustify spelling error text test. r?Jamie → Bug 1797393 - P2: Robustify spelling error text test. r=Jamie
Attachment #9300246 - Attachment description: Bug 1797393 - P3: Explicitly assign font name to text area in linebreak test. r?Jamie → Bug 1797393 - P3: Explicitly assign font name to text area in linebreak test. r=Jamie

Adding spellcheck=false to the textarea fixes the caret test. the failures were caused by spelling error range changes and us being mid-reflow. When I added a new font I introduced this issue because the need for a reflow depends on the font and its underline size.. https://searchfox.org/mozilla-central/source/layout/generic/nsTextFrame.cpp#7793

Flags: needinfo?(eitan)
Pushed by eisaacson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f811739c8d0 P1: Split and rename browser text tests. r=Jamie https://hg.mozilla.org/integration/autoland/rev/ec63c426aaba P2: Robustify spelling error text test. r=Jamie https://hg.mozilla.org/integration/autoland/rev/8094a5d40dab P3: Explicitly assign font name to text area in linebreak test. r=Jamie
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: