mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-23 23:13:29 +00:00
3faf7ff34c
This might not be the best possible solution, but it improves the current, obviously broken situation a lot. At the moment one of the dots is drawn outside of the slider, even if the revision it should point at is part of the slider. Turns out the revisions shown on the slider are loaded in multiple steps. The first step misses one of the revisions when their order is swapped. When the missing revision is added later it's already to late. Bug: T168609 Change-Id: I10d15d04d981c87d35b2431080182fb5e3eb2b2b |
||
---|---|---|
.phan | ||
i18n | ||
modules | ||
resources/ext.RevisionSlider.helpDialog | ||
src | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
.svgo.config.js | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
jsduck.json | ||
package-lock.json | ||
package.json | ||
README.md |
RevisionSlider extension
This MediaWiki extension shows a slider allowing selecting and comparing of revisions on a diff page
Installation
Check out this extension into the extensions
folder of your MediaWiki installation and add the following line to your LocalSettings.php
:
wfLoadExtension( 'RevisionSlider' );
Tests
Before executing tests run the following in the root directory of the extension once:
composer install
npm install
For the tests run:
composer test
node_modules/.bin/grunt test
QUnit Tests
See https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing#Run_the_tests
Browser Tests
See tests/selenium/README.md