mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2025-01-07 11:24:16 +00:00
d5809a08c2
Change-Id: I5aa8d951e8fb77321748af341a1a17277aad9820
19 lines
487 B
JavaScript
19 lines
487 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-pointer' ) );
|
|
} );
|
|
|
|
QUnit.test( 'Set and get position', function ( assert ) {
|
|
var pointer = new Pointer(),
|
|
pos = 42;
|
|
|
|
pointer.setPosition( pos );
|
|
assert.equal( pointer.getPosition(), pos );
|
|
} );
|
|
|
|
} )( mediaWiki );
|