mediawiki-extensions-Visual.../modules/ve/test/dm/ve.dm.MWConverter.test.js
Ed Sanders d1aca4503e Separate out MW specific converter tests
They are only run in the MW test runner, where the MW dependencies
are available. Create a ve.test namespace for storing shared
test runners.

Change-Id: I079cb18b1c73614d25a12c5d6afcf0700469e52e
2013-06-27 17:10:25 +01:00

19 lines
536 B
JavaScript

/*!
* 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.runGetDataFromDomTests( assert, ve.copyObject( ve.dm.mwExample.domToDataCases ) );
} );
QUnit.test( 'getDomFromData', function ( assert ) {
ve.test.runGetDomFromDataTests( assert, ve.copyObject( ve.dm.mwExample.domToDataCases ) );
} );