RESOLVED FIXED256218
AX: Allow 1px difference in results for mac/bounds-for-range.html
https://bugs.webkit.org/show_bug.cgi?id=256218
Summary AX: Allow 1px difference in results for mac/bounds-for-range.html
Tyler Wilcock
Reported 2023-05-02 11:34:20 PDT
With https://bugs.webkit.org/show_bug.cgi?id=256179, there can sometimes be a 1px difference in the results for this test. Worse, the difference is only between EWS and my local machine (both are consistent, but different).
Attachments
Patch (7.65 KB, patch)
2023-05-02 11:36 PDT, Tyler Wilcock
no flags
Patch (7.60 KB, patch)
2023-05-02 12:06 PDT, Tyler Wilcock
no flags
Patch (8.24 KB, patch)
2023-05-02 16:11 PDT, Tyler Wilcock
no flags
Patch (8.27 KB, patch)
2023-05-02 16:19 PDT, Tyler Wilcock
no flags
Radar WebKit Bug Importer
Comment 1 2023-05-02 11:34:37 PDT
Tyler Wilcock
Comment 2 2023-05-02 11:36:21 PDT
Tyler Wilcock
Comment 3 2023-05-02 12:06:32 PDT
chris fleizach
Comment 4 2023-05-02 12:47:11 PDT
Comment on attachment 466177 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=466177&action=review > LayoutTests/accessibility/mac/bounds-for-range.html:27 > + output += expectAny("textChild.boundsForRange(6,10)", ["{{-1.000000, -1.000000}, {60.000000, 18.000000}}", "{{-1.000000, -1.000000}, {61.000000, 18.000000}}"]); should we make something for robust, like expectWithVariance(textChild.boundsFor, "1, 1, 50, 18", "3.0") and then you have the parse the frame but that's not too hard
Tyler Wilcock
Comment 5 2023-05-02 16:11:09 PDT
Tyler Wilcock
Comment 6 2023-05-02 16:11:34 PDT
(In reply to chris fleizach from comment #4) > Comment on attachment 466177 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=466177&action=review > > > LayoutTests/accessibility/mac/bounds-for-range.html:27 > > + output += expectAny("textChild.boundsForRange(6,10)", ["{{-1.000000, -1.000000}, {60.000000, 18.000000}}", "{{-1.000000, -1.000000}, {61.000000, 18.000000}}"]); > > should we make something for robust, like > > expectWithVariance(textChild.boundsFor, "1, 1, 50, 18", "3.0") > > and then you have the parse the frame but that's not too hard Fixed in the latest patch.
chris fleizach
Comment 7 2023-05-02 16:14:03 PDT
nice!
Tyler Wilcock
Comment 8 2023-05-02 16:19:16 PDT
EWS
Comment 9 2023-05-02 20:32:29 PDT
Committed 263617@main (de2c64350b4c): <https://commits.webkit.org/263617@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 466183 [details].
Note You need to log in before you can comment on or make changes to this bug.