Ed Sanders
a4636d39fc
Move #getTranscludedFrom from parser to ThreadItem
...
Also requires moving getTitleFromUrl to CommentUtils
Change-Id: I9cb83a3fdd456eba66899433b866ce7a7f00eeb5
2020-07-20 15:56:48 +01:00
Ed Sanders
7ae5bbf384
Move #getAuthors from parser to ThreadItem
...
Change-Id: I16e513000e5366b3044b17a99da07d8d0f47a61f
2020-07-20 15:13:59 +01:00
Ed Sanders
b32f991913
Documentation fixes
...
Change-Id: I2c7ccecbf8a50bd4d658b0f17f4a21fe90a3c399
2020-07-20 13:34:08 +01:00
Bartosz Dziewoński
08b467bf9f
tests: Fix wrong $rootNode in some tests using CommentParser::getComments()
...
Rather than the <body> node, we were passing <body>'s first child.
Current implementation of CommentParser::getComments() doesn't fail
the tests in spite of this because the XPath query incorrectly returns
results relative to the document's real root node, but these tests
would start failing after I2441f33e6e7bad753ac830d277e6a2e81ee8c93d.
Follow-up to 3e6ab2c4d2
.
Change-Id: Ic26e0a1ee4443987e215c5f26ef1f084ccd0b40b
2020-07-15 16:40:30 +00:00
Ed Sanders
ed70d49285
CommentParser.php: Fix URL parsing
...
Change-Id: I406fd98b308dd4d975ea974f2369737a7052b556
2020-07-01 17:06:02 +01:00
Ed Sanders
3e6ab2c4d2
PHP: Use DOMUtils::parseHTML
...
Change-Id: Ifed0ab99b3da9f8b35ca815ada45f804a8756c1b
2020-06-26 20:06:47 +01:00
Ed Sanders
306faba93d
Tests: childNodes[0] -> firstChild
...
Change-Id: Iae53012f289552d80dad907bfb54a8b5d44cb484
2020-06-12 19:46:08 +00:00
Ed Sanders
7be0cc3209
Create ThreadItem classes
...
Change-Id: Id2c5324d74eccb1209ccb76768c557722c6d9400
2020-06-12 20:35:59 +01:00
Ed Sanders
b3ca37c1c5
Create ImmutableRange class in PHP
...
TODO: Create one in JS as well
Change-Id: I6c9dc2455afcb8d0b68674a2985c5e43dd94b6fb
2020-05-22 15:01:09 +01:00
Bartosz Dziewoński
c64bb6b5b7
Add the test for getAuthors() in JS too
...
Change-Id: Id7dabc535b6bb688602c0d55fc3696f662cb10c7
2020-05-19 21:13:52 +02:00
Bartosz Dziewoński
e12aea2f77
Add test case for unwrapParsoidSections()
...
Covers the bug fixed in I9133d4365a71d6db1fa58b69ae3b970166d15c1e.
Depends-On: I9133d4365a71d6db1fa58b69ae3b970166d15c1e
Bug: T252238
Change-Id: I92831696864e04384eb514ab69f14563cceafc19
2020-05-18 21:36:48 +00:00
Ed Sanders
c5d1029b25
Move /cases and /data up to /tests
...
Theses are no longer QUnit specific.
Change-Id: I5f3cca1ff686922e0cdaaedb80858f37df04799a
2020-05-18 21:47:17 +01:00
Ed Sanders
b1427163af
Parser.php: Add tests for getTranscludedFrom
...
Requires an implementation of unwrapParsoidSections
Change-Id: I96c929b1117ba652dbd5af6a1ee37a5f9e87ed1e
2020-05-18 19:53:01 +00:00
Reedy
234988155e
Add leading \ to covers
...
Change-Id: I1ed4cd28bf630c6aae238e548410d1293a8b71f1
2020-05-15 22:08:25 +01:00
Ed Sanders
e6e0b1ead9
PHP: Add missing typehints
...
Change-Id: I5639f8cbdae9aaa9cfa06136e19cc94f9fad10ea
2020-05-15 22:04:47 +02:00
Ed Sanders
b78fb3f4c1
Move all PHP to the MediaWiki\Extension\DiscussionTools namespace
...
Change-Id: I654ebb3e646a6d8d62f7bd14d48805e39f836d7e
2020-05-15 21:57:13 +02:00