mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
d1aca4503e
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
19 lines
536 B
JavaScript
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 ) );
|
|
} );
|