mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-22 11:02:58 +00:00
352e7795ca
Bug: T289560 Change-Id: I81f882d6e6793198371ff9ff3e1e5bbbec98e0d9
14 lines
518 B
JavaScript
14 lines
518 B
JavaScript
QUnit.module( 've.ui.MWTransclusionOutlinePlaceholderWidget' );
|
|
|
|
QUnit.test( 'Constructor', ( assert ) => {
|
|
const transclusion = new ve.dm.MWTransclusionModel(),
|
|
placeholder = new ve.dm.MWTemplatePlaceholderModel( transclusion ),
|
|
widget = new ve.ui.MWTransclusionOutlinePlaceholderWidget( placeholder );
|
|
|
|
assert.strictEqual( widget.getData(), 'part_0' );
|
|
assert.strictEqual(
|
|
widget.$element.find( '.ve-ui-mwTransclusionOutlineButtonWidget' ).text(),
|
|
'visualeditor-dialog-transclusion-add-template'
|
|
);
|
|
} );
|