diff --git a/modules/ve-mw/tests/dm/ve.dm.mwExample.js b/modules/ve-mw/tests/dm/ve.dm.mwExample.js index 190e0de752..59b7c1ba1d 100644 --- a/modules/ve-mw/tests/dm/ve.dm.mwExample.js +++ b/modules/ve-mw/tests/dm/ve.dm.mwExample.js @@ -1051,6 +1051,46 @@ ve.dm.mwExample.domToDataCases = { { type: '/internalList' } ] }, + 'mw:AlienExtension': { + body: + '
' + + '
Rendering
' + + '
', + normalizedBody: + '
' + + '
', + data: [ + { + type: 'mwAlienExtension', + attributes: { + mw: { + name: 'syntaxhighlight', + attrs: { + lang: 'php' + }, + body: { + extsrc: '\n$foo = bar;\n' + } + }, + originalIndex: 0, + originalMw: '{"name":"syntaxhighlight","attrs":{"lang":"php"},"body":{"extsrc":"\\n$foo = bar;\\n"}}' + }, + originalDomElements: $( '
' ).toArray() + }, + { type: '/mwAlienExtension' }, + { type: 'internalList' }, + { type: '/internalList' } + ], + modify: function ( model ) { + model.data.data[0].attributes.mw.attrs.lang = 'php5'; + } + }, 'mw:Reference': { // Wikitext: // Foo BazQuux Whee[[Bar]] YayNo name QuuxDifferent content Foo