RESOLVED FIXED 233689
REGRESSION (r286346): ResourceLoadDelegate.LoadInfo fails
https://bugs.webkit.org/show_bug.cgi?id=233689
Summary REGRESSION (r286346): ResourceLoadDelegate.LoadInfo fails
Tim Horton
Reported 2021-11-30 23:58:13 PST
REGRESSION (r286346): ResourceLoadDelegate.LoadInfo fails
Attachments
Patch (2.71 KB, patch)
2021-11-30 23:58 PST, Tim Horton
no flags
Tim Horton
Comment 1 2021-11-30 23:58:50 PST
EWS
Comment 2 2021-12-01 09:50:38 PST
Committed r286368 (244727@main): <https://commits.webkit.org/244727@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 445533 [details].
Radar WebKit Bug Importer
Comment 3 2021-12-01 09:51:35 PST
Darin Adler
Comment 4 2021-12-01 09:59:11 PST
Comment on attachment 445533 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=445533&action=review > Tools/TestWebKitAPI/Tests/WebKitCocoa/ResourceLoadDelegate.mm:-382 > - EXPECT_EQ(archiveData.length, 607ull); Another comment from my new crusade, on this deleted code, so that observers will learn what I have recently learned: This is backwards, the actual value first and then the expected. The GTest macros take the expected value first and the actual value second. Getting this right helps the clarity of the message when the expectation is not met.
Darin Adler
Comment 5 2021-12-01 11:38:20 PST
(In reply to Darin Adler from comment #4) > Another comment from my new crusade, on this deleted code, so that observers > will learn what I have recently learned: This is backwards, the actual value > first and then the expected. The GTest macros take the expected value first > and the actual value second. Getting this right helps the clarity of the > message when the expectation is not met. Now I am not sure; the error message someone mentioned in a Slack discussion seems to be more even-handed than I thought, so my comment may be out of date.
Note You need to log in before you can comment on or make changes to this bug.