createMock() does the same, but is much easier to read.
A small difference is that some of the replacements made in this
patch didn't use disableOriginalConstructor() before. In case this
was relevant we should see the respective test fail. If not we can
save some CPU cycles and skip these constructors.
Change-Id: Ib98fb06e0fe753b7a53cb087a47e1159515a8ad5
Displaying each row requires the revision ID from the next row, to
create the 'undo' and 'prev' links. (These links specifically refer to
the next displayed row, according to the current filters, and not just
the previous revision, like the byte diff numbers.)
Previously this class would override normal row formatting to display
the previous row instead when the normal pager would display the
current row, and then handled the last row specially. This code dates
back to 2006: 20949b0961. It was complicated, and got more complicated
when grouping by dates was introduced (ed63ede657), when it caused the
last row to be displayed in a separate list.
Thanks to the addition of batch processing in f7f84dddb3, we don't
need to do that any more: the necessary information about revisions is
pre-computed and we can just look up the ID for next row while
displaying the previous one.
Bug: T303210
Change-Id: I838b0bd4c04faf4f83b21282deb757207ab1732a
The tag wouldn't be treated as active, wouldn't be displayed
in changes lists and it wouldn't be possible to filter it,
although it was possible to create it.
The changes in ::modifyDisplayQuery are needed, because
ContribsPager may provide false.
Add a regression test for ::formatSummaryRow.
Bug: T296642
Change-Id: Iddb1e978387a0009425f6fad1821d9d15c0f5f23
These list headers are added to the HTML but hidden by default.
They are needed for the mobile version which displays headers
for better scannability.
However the change will only display on:
* Special:Contributions
* history page
* Special:MergeHistory
Bug: T298638
Change-Id: Iaa55eab57f761c9be780aba79cf2b9b212d91657