mediawiki-extensions-Echo/tests
Matthias Mullie 58e1c765d6 Improve signature detection
Previously, there were a couple of hacks in play.
It was also not picking up ~~~ (signature without timestamp)
And it relied an a nasty regular expression which, although
based on Parser, may some day get out of date.
And it relied heavily on a specific signature format, which
isn't guaranteed (it's an i18n msg)

This patch changes the approach: it will use a very simple
regex to match links, and will send those through Parser to
generate the signature anew. My reasoning is that that should
be exactly the same as what Echo just received (should've
also gone through parser)

Biggest discomfort of this approach is that it's much stricter.
It should still match whatever it generated from a ~~~ or ~~~~,
but no longer the e.g. not-real signatures we were doing in
our tests. Also had to update our tests, because signatures
change depending on anon. So I had to generate all the users.
And fix some of the signature formats used in the tests.

Bug: T75426
Bug: T87852
Bug: T75366
Bug: T78424
Change-Id: Ibeff36397129fdd5d376f3668a23a45f9a014525
2015-02-05 20:45:19 +01:00
..
browser/features QA update for single quote preference 2014-11-10 14:21:28 -07:00
externals Add ability to run QUnit tests 2014-08-01 15:55:22 -07:00
phpunit Improve signature detection 2015-02-05 20:45:19 +01:00
qunit/overlay Switch the order of Alerts and Messages tabs 2014-09-10 15:31:09 +00:00
bootstrap.php Directory reshuffle, add dev tools 2014-08-01 22:38:41 +00:00
echo.suite.xml Directory reshuffle, add dev tools 2014-08-01 22:38:41 +00:00