mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-14 19:24:42 +00:00
Merge "Fix test module copypasta"
This commit is contained in:
commit
435ffab0a1
|
@ -5,7 +5,7 @@
|
|||
RevisionList = mw.libs.revisionSlider.RevisionList,
|
||||
Revision = mw.libs.revisionSlider.Revision;
|
||||
|
||||
QUnit.module( 'ext.RevisionSlider.Slider' );
|
||||
QUnit.module( 'ext.RevisionSlider.DiffPage' );
|
||||
|
||||
QUnit.test( 'Initialize DiffPage', function ( assert ) {
|
||||
assert.ok( ( new DiffPage() ) );
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
( function () {
|
||||
var PointerView = mw.libs.revisionSlider.PointerView;
|
||||
|
||||
QUnit.module( 'ext.RevisionSlider.Pointer' );
|
||||
QUnit.module( 'ext.RevisionSlider.PointerView' );
|
||||
|
||||
QUnit.test( 'Initialize PointerView', function ( assert ) {
|
||||
assert.ok( ( new PointerView( null, 'mw-revslider-pointer' ) ).render().hasClass( 'mw-revslider-pointer' ) );
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
( function () {
|
||||
var Revision = mw.libs.revisionSlider.Revision;
|
||||
|
||||
QUnit.module( 'ext.RevisionSlider.RevisionList' );
|
||||
QUnit.module( 'ext.RevisionSlider.Revision' );
|
||||
|
||||
QUnit.test( 'create Revision', function ( assert ) {
|
||||
var data = {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
RevisionList = mw.libs.revisionSlider.RevisionList,
|
||||
Revision = mw.libs.revisionSlider.Revision;
|
||||
|
||||
QUnit.module( 'ext.RevisionSlider.RevisionList' );
|
||||
QUnit.module( 'ext.RevisionSlider.RevisionListView' );
|
||||
|
||||
QUnit.test( 'render adds revisions', function ( assert ) {
|
||||
var revisionListView = new RevisionListView( new RevisionList( [
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
Revision = mw.libs.revisionSlider.Revision,
|
||||
startHistoryState, startHref;
|
||||
|
||||
QUnit.module( 'ext.RevisionSlider.Slider' );
|
||||
QUnit.module( 'ext.RevisionSlider.SliderView' );
|
||||
|
||||
QUnit.testStart( function () {
|
||||
startHistoryState = history.state;
|
||||
|
|
Loading…
Reference in a new issue