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

13 lines
397 B
JavaScript
Raw Normal View History

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