mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2025-01-08 11:54:14 +00:00
ddcd65f4de
Change-Id: I8e06c9eeb47688741a95bca8f996b2148b03028c
19 lines
505 B
JavaScript
19 lines
505 B
JavaScript
( function () {
|
|
var Pointer = require( 'ext.RevisionSlider.Pointer' ).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.strictEqual( pointer.getPosition(), pos );
|
|
} );
|
|
|
|
}() );
|