mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-12-12 07:25:13 +00:00
a5f36af0f3
Bug: T139105 Change-Id: Ia92396ec4f8acea39398173c81842d66257dc519
19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
( function ( mw ) {
|
|
var Pointer = mw.libs.revisionSlider.Pointer;
|
|
|
|
QUnit.module( 'ext.RevisionSlider.Pointer' );
|
|
|
|
QUnit.test( 'Initialize Pointer', function ( assert ) {
|
|
assert.ok( ( new Pointer( 'mw-revslider-pointer' ) ).getView().render().hasClass( 'mw-revslider-pointer' ) );
|
|
} );
|
|
|
|
QUnit.test( 'Set and get position', function ( assert ) {
|
|
var pointer = new Pointer(),
|
|
pos = 42;
|
|
|
|
pointer.setPosition( pos );
|
|
assert.equal( pointer.getPosition(), pos );
|
|
} );
|
|
|
|
} )( mediaWiki );
|