mediawiki-extensions-Visual.../modules/ve-mw/test/dm/ve.dm.MWConverter.test.js

19 lines
540 B
JavaScript
Raw Normal View History

/*!
* VisualEditor DataModel MediaWiki Converter tests.
*
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
QUnit.module( 've.dm.MWConverter' );
/* Tests */
QUnit.test( 'getModelFromDom', function ( assert ) {
ve.test.utils.runGetModelFromDomTests( assert, ve.copy( ve.dm.mwExample.domToDataCases ) );
} );
QUnit.test( 'getDomFromModel', function ( assert ) {
ve.test.utils.runGetDomFromModelTests( assert, ve.copy( ve.dm.mwExample.domToDataCases ) );
} );