mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-12-20 18:42:41 +00:00
b02028b671
It's just hard to find and confusing when hidden in that sub-directory. Bug: T358851 Change-Id: I19ffe73b79fa9add52af12f477afe7abbc6db836
19 lines
587 B
JavaScript
19 lines
587 B
JavaScript
'use strict';
|
|
|
|
QUnit.module( 've.ui.MWReferenceContextItem (Cite)', ve.test.utils.newMwEnvironment() );
|
|
|
|
QUnit.test( 'getReferenceNode', function ( assert ) {
|
|
// XXX: This is a regression test with a fragile setup. Please feel free to delete this test
|
|
// when you feel like it doesn't make sense to update it.
|
|
const context = {
|
|
isMobile: () => false,
|
|
getSurface: () => ( {
|
|
isReadOnly: () => false
|
|
} )
|
|
};
|
|
const model = { isEditable: () => false };
|
|
|
|
const item = new ve.ui.MWReferenceContextItem( context, model );
|
|
assert.strictEqual( item.getReferenceNode(), null );
|
|
} );
|