mediawiki-extensions-Math/modules/ve-math/tests/ve.dm.Autocomplete.test.js

13 lines
386 B
JavaScript
Raw Normal View History

QUnit.module( 've.dm.Autocomplete (Math)', ve.test.utils.mwEnvironment );
QUnit.test( 'Autocomplete list', function ( assert ) {
assert.notStrictEqual(
ve.ui.MWMathDialog.static.autocompleteWordList,
undefined,
'autocomplete list exists' );
assert.notEqual(
ve.ui.MWMathDialog.static.autocompleteWordList.indexOf( '\\alpha' ),
-1,
'autocomplete contains \\alpha' );
} );