mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 361283a332 Ship HTML test files for JS using 'packageFiles' instead of 'templates'
We originally used 'templates' because it seemed like an obvious
choice for HTML files, and because 'packageFiles' requires extra code
to include anything that isn't a .js or .json file.

However, the templates are expected to be HTML fragments rather than
whole documents, and they are parsed in a particular way that takes a
lot of code to clean up (which we needed to do, because we use the
same test files for testing PHP code).

I tried doing it in the 'packageFiles' way, and the extra code doesn't
seem that bad in comparison after all. Moreover, the 'templates'
mechanism (when used the intended way) feels vaguely deprecated in
favor of Vue.js, and I'd rather move away from it.

This makes the tests faster too (probably mostly thanks to the removal
of the clean up code) – on my machine they go from 1800ms to 1500ms.

(Simplify linearWalk tests, as we no longer need to do weird things
with document fragments to get consistent outputs in PHP and JS.)

Change-Id: I39f9b994ce5636d70fea2e935a7c87c7d56dcb26
2022-10-12 22:45:41 +00:00
..
Actions Injected SubscriptionStore into UnsubscribeAction 2021-08-09 22:38:52 +00:00
Hooks Fix call to wfMessage 2022-10-09 13:56:03 +02:00
Notifications Merge "Use cheaper getRawVal/getCheck instead of getVal where possible" 2022-09-03 05:33:08 +00:00
ThreadItem Refactor thread summary getters 2022-09-06 23:19:13 +02:00
ApiDiscussionToolsCompare.php Use RevisionLookup methods instead of ApiParsoidTrait methods 2022-10-09 18:17:32 +00:00
ApiDiscussionToolsEdit.php Use RevisionLookup methods instead of ApiParsoidTrait methods 2022-10-09 18:17:32 +00:00
ApiDiscussionToolsGetSubscriptions.php Inject services into API classes 2022-09-03 00:23:41 +02:00
ApiDiscussionToolsPageInfo.php Use RevisionLookup methods instead of ApiParsoidTrait methods 2022-10-09 18:17:32 +00:00
ApiDiscussionToolsPreview.php Replace VisualEditor ParsoidHelper with ParsoidClient 2022-09-19 18:00:14 +02:00
ApiDiscussionToolsSubscribe.php Inject services into API classes 2022-09-03 00:23:41 +02:00
ApiDiscussionToolsTrait.php Replace VisualEditor ParsoidHelper with ParsoidClient 2022-09-19 18:00:14 +02:00
ButtonMenuSelectWidget.php Show thread metadata in section headers 2022-06-23 17:17:09 +01:00
CommentFormatter.php Remove all hacks for old HTML in HTTP cache or parser cache 2022-10-09 18:17:35 +00:00
CommentModifier.php Add space if possible after bullet indentation 2022-08-12 22:33:02 +02:00
CommentParser.php Refactor thread summary getters 2022-09-06 23:19:13 +02:00
CommentUtils.php Ignore "tracked" templates at the beginning of comments 2022-07-31 03:56:36 +02:00
ContentThreadItemSet.php Remove all stuff about legacy IDs 2022-08-24 01:01:09 +02:00
DatabaseThreadItemSet.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
ImmutableRange.php ImmutableRange: Add surroundContents method 2022-10-04 16:51:08 +02:00
LanguageData.php LanguageData: Accept abbreviations in $wgLocaltimezone 2022-07-07 03:12:20 +00:00
NodeFilter.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00
ResourceLoaderData.php Ship HTML test files for JS using 'packageFiles' instead of 'templates' 2022-10-12 22:45:41 +00:00
ServiceWiring.php Store permalink data, implement Special:FindComment/GoToComment 2022-08-11 01:19:47 +02:00
SpecialFindComment.php Store permalink data, implement Special:FindComment/GoToComment 2022-08-11 01:19:47 +02:00
SpecialGoToComment.php Store permalink data, implement Special:FindComment/GoToComment 2022-08-11 01:19:47 +02:00
SpecialTopicSubscriptions.php Add Special:TopicSubscriptions 2021-10-06 20:06:01 +00:00
SubscriptionItem.php Add missing typehints 2021-12-01 14:57:09 +00:00
SubscriptionStore.php Only hold on to a Config instead of ConfigFactory when injecting 2022-09-03 00:39:51 +02:00
ThreadItemFormatter.php Store permalink data, implement Special:FindComment/GoToComment 2022-08-11 01:19:47 +02:00
ThreadItemSet.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
ThreadItemStore.php Only hold on to a Config instead of ConfigFactory when injecting 2022-09-03 00:39:51 +02:00
TopicSubscriptionsPager.php Show created/notified dates on Special:TopicSubscriptions 2022-06-26 22:42:44 +01:00
TreeWalker.php Don't refer directly to PHP dom extension classes; avoid nonstandard behavior 2021-07-30 18:15:40 -04:00