wiki.techinc.nl/tests/phpunit/includes/changes
Gergő Tisza 016452cd09 ChangesList: Expose basic properties of lines as data attributes
We have several types of change lists (old RC/watchlist/related
changes, enhanced RC/watchlist, history) with slightly different
HTML, each with their own idiosyncracies. JavaScript code trying
to identify lines by log ID / revision ID has to jump through all
kinds of hoops to work with that.

To simplify the lives of frontend / gadget maintainers and provide
something approaching an API for these pages, we now expose the basic
attributes of each change line (revision ID for edits, log type/action
and ID for log events) as data attributes.

The OldChangesListRecentChangesLine, EnhancedChangesListModifyLineData,
EnhancedChangesListModifyBlockLineData, PageHistoryLine,
ContributionsLineEnding and DeletedContributionsLineEnding hooks
are updated accordingly. New hooks (LogEventsListLineEnding and
NewPagesLineEnding) are added for the change list pages which did
not yet have them.

Change-Id: I6dd006d0b1b0fd35c0020f0f9eea9113eca30b35
2017-06-08 23:19:45 +00:00
..
CategoryMembershipChangeTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
ChangesListBooleanFilterGroupTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
ChangesListBooleanFilterTest.php RCFilters: Remove isAllowedCallable and isAllowed 2017-03-31 01:49:44 -04:00
ChangesListFilterGroupTest.php RCFilters: Prevent duplicate filter names 2017-03-16 07:19:40 +00:00
ChangesListFilterTest.php Fix php code style 2017-05-05 12:03:54 +00:00
ChangesListStringOptionsFilterGroupTest.php Switch to librarized version of TestingAccessWrapper 2017-04-20 14:15:57 +00:00
EnhancedChangesListTest.php ChangesList: Expose basic properties of lines as data attributes 2017-06-08 23:19:45 +00:00
OldChangesListTest.php ChangesList: Expose basic properties of lines as data attributes 2017-06-08 23:19:45 +00:00
RCCacheEntryFactoryTest.php changes: Remove assertTag from RCCacheEntryFactoryTest 2017-03-31 17:20:25 -07:00
RecentChangeTest.php phpunit: Fix RecentChangeTest failure when coverage is enabled 2017-03-20 22:14:30 +00:00
TestRecentChangesHelper.php Remove unused imports from test classes 2017-01-10 11:49:58 +01:00