Closed Bug 1842473 Opened 1 year ago Closed 1 year ago

test_tree_scroll.xhtml depends on load event timing

Categories

(Core :: XUL, defect)

defect

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox117 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files)

In bug 1824886 (which makes firing the load event sooner) I tried to tweak it to preserve the previous behavior. Without that there were failures like:

Daisuke, I saw the test already used onload="setTimeout(...)", do you know why that was needed?

(See question above, sorry)

Flags: needinfo?(daisuke)

I'll try to investigate tomorrow

Flags: needinfo?(emilio)

HI Emilio!
Unfortunately, I’m not sure exactly. As other tests in the same directory have executed their tests like that, I introduced the same way.
https://searchfox.org/mozilla-central/search?q=onload%3D"setTimeout(&path=content%2Ftests%2Fchrome%2F&case=false&regexp=false

Flags: needinfo?(daisuke)

These APIs take device pixels, not CSS pixels.

I'm not sure this will be enough to fix the test but this at least
allows the test to pass on the macOS machine I have, and it's trivially
correct.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/892c0dac0180 Fix coordinate space of tree scroll test. r=hiro

Ok this was a bit more annoying. It seems like test_preferences.xhtml left a stray modal window and made mousemove events not work on macOS...

Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7f802bfdd640 Make test_preferences not leave a stray modal window on macOS.
Keywords: leave-open
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: