mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-14 07:21:36 +00:00
9392282bf2
This also fixes a mistake in the class where we forgot to disconnect event handlers when an element is removed from the list. This doesn't have much of a consequence, as the event flow is only in one direction, from the destroyed element up. This is not possible any more. Bug: T289560 Change-Id: I0bcc1d68c50b8cbdb033ef6692b34e2fc94e8d85
9 lines
311 B
JavaScript
9 lines
311 B
JavaScript
QUnit.module( 've.ui.MWTransclusionOutlineButtonWidget' );
|
|
|
|
QUnit.test( 'Constructor', ( assert ) => {
|
|
const widget = new ve.ui.MWTransclusionOutlineButtonWidget();
|
|
|
|
// eslint-disable-next-line no-jquery/no-class-state
|
|
assert.ok( widget.$element.hasClass( 've-ui-mwTransclusionOutlineButtonWidget' ) );
|
|
} );
|