RESOLVED FIXED230363
Fix TestWebKitAPI.WebKit.AppHighlightsInImageOverlays to work with changing menu states.
https://bugs.webkit.org/show_bug.cgi?id=230363
Summary Fix TestWebKitAPI.WebKit.AppHighlightsInImageOverlays to work with changing m...
Megan Gardner
Reported 2021-09-16 11:01:23 PDT
Fix TestWebKitAPI.WebKit.AppHighlightsInImageOverlays to work with changing menu states.
Attachments
Patch (1.83 KB, patch)
2021-09-16 11:04 PDT, Megan Gardner
no flags
Patch (1.82 KB, patch)
2021-09-16 12:23 PDT, Megan Gardner
no flags
Patch for landing (1.82 KB, patch)
2021-09-16 12:23 PDT, Megan Gardner
no flags
Megan Gardner
Comment 1 2021-09-16 11:04:21 PDT
Wenson Hsieh
Comment 2 2021-09-16 11:05:16 PDT
Comment on attachment 438370 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=438370&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/WKContentViewEditingActions.mm:101 > + EXPECT_EQ([contentView targetForAction:createHighlightForCurrentQuickNoteWithRangeSelector withSender:nil], nil); Maybe `EXPECT_NULL` to match the ones above? But this works too.
Megan Gardner
Comment 3 2021-09-16 12:23:07 PDT
Megan Gardner
Comment 4 2021-09-16 12:23:30 PDT
Created attachment 438384 [details] Patch for landing
Darin Adler
Comment 5 2021-09-16 12:31:19 PDT
Comment on attachment 438383 [details] Patch Not new to this patch, in fact this patch makes things better, but: I think a lot of our tests are using the EXPECT family backwards. It’s expected value first, then test expression. This affects the output when tests fail, and is worth getting right.
Wenson Hsieh
Comment 6 2021-09-16 12:35:25 PDT
(In reply to Darin Adler from comment #5) > Comment on attachment 438383 [details] > Patch > > Not new to this patch, in fact this patch makes things better, but: I think > a lot of our tests are using the EXPECT family backwards. It’s expected > value first, then test expression. This affects the output when tests fail, > and is worth getting right. Good catch! Filed: <https://bugs.webkit.org/show_bug.cgi?id=230368>.
EWS
Comment 7 2021-09-16 14:35:30 PDT
Committed r282601 (241762@main): <https://commits.webkit.org/241762@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438384 [details].
Radar WebKit Bug Importer
Comment 8 2021-09-16 14:36:34 PDT
Note You need to log in before you can comment on or make changes to this bug.