mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-19 18:20:45 +00:00
d6a58cfa8d
Note these are more meant as regression test to better cover what's done in other patches. Everybody should feel free to delete a test when it gets in the way. I marked a few especially fragile places with respective comments. Bug: T358652 Change-Id: I7844907fe3ef4f3439717381b4ecdac9e2d0a825
10 lines
372 B
JavaScript
10 lines
372 B
JavaScript
'use strict';
|
|
|
|
QUnit.module( 've.ui.MWReferenceResultWidget (Cite)', ve.test.utils.newMwEnvironment() );
|
|
|
|
QUnit.test( 'Initialization', function ( assert ) {
|
|
const widget = new ve.ui.MWReferenceResultWidget();
|
|
assert.true( widget instanceof OO.ui.OptionWidget );
|
|
assert.strictEqual( widget.$element.children( '.ve-ui-mwReferenceResultWidget-shield' ).length, 1 );
|
|
} );
|