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

19 lines
536 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( 'getDataFromDom', function ( assert ) {
ve.test.utils.runGetDataFromDomTests( assert, ve.copy( ve.dm.mwExample.domToDataCases ) );
} );
QUnit.test( 'getDomFromData', function ( assert ) {
ve.test.utils.runGetDomFromDataTests( assert, ve.copy( ve.dm.mwExample.domToDataCases ) );
} );