From 9e4915d7c326c1f0004867269ed0b88f8ce66d23 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 4 Jan 2022 02:01:38 +0000 Subject: [PATCH] Tests: Fix unbalanced HTML Change-Id: I997c68ce33263004b8ae9b686aae7295eec12ea7 --- modules/ve-mw/tests/dm/ve.dm.mwExample.js | 17 +++++++++-------- .../ve-mw/tests/ui/ve.ui.DiffElement.test.js | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/ve-mw/tests/dm/ve.dm.mwExample.js b/modules/ve-mw/tests/dm/ve.dm.mwExample.js index f83ce9768e..f14397de41 100644 --- a/modules/ve-mw/tests/dm/ve.dm.mwExample.js +++ b/modules/ve-mw/tests/dm/ve.dm.mwExample.js @@ -847,8 +847,8 @@ ve.dm.mwExample.domToDataCases = { { type: 'internalList' }, { type: '/internalList' } ], - normalizedBody: '', - fromDataBody: '' + normalizedBody: '', + fromDataBody: '' }, 'mwGalleryImage (empty caption in DOM)': { body: '', @@ -893,8 +893,8 @@ ve.dm.mwExample.domToDataCases = { { type: 'internalList' }, { type: '/internalList' } ], - normalizedBody: '', - fromDataBody: '' + normalizedBody: '', + fromDataBody: '' }, 'mwGalleryImage (caption with content in DOM)': { body: '', @@ -940,8 +940,8 @@ ve.dm.mwExample.domToDataCases = { { type: 'internalList' }, { type: '/internalList' } ], - normalizedBody: '', - fromDataBody: '' + normalizedBody: '', + fromDataBody: '' }, 'mwGalleryImage (no caption in model)': { data: [ @@ -976,7 +976,7 @@ ve.dm.mwExample.domToDataCases = { { type: 'internalList' }, { type: '/internalList' } ], - fromDataBody: '' + fromDataBody: '' }, 'mwGalleryImage (empty caption in model)': { data: [ @@ -1013,7 +1013,7 @@ ve.dm.mwExample.domToDataCases = { { type: 'internalList' }, { type: '/internalList' } ], - fromDataBody: '' + fromDataBody: '' }, 'mwBlockImage (no caption in DOM)': { body: '
', @@ -1510,6 +1510,7 @@ ve.dm.mwExample.domToDataCases = { }, 'internal link with special characters': { body: '

x

', + ignoreXmlWarnings: true, head: '', data: [ { type: 'paragraph' }, diff --git a/modules/ve-mw/tests/ui/ve.ui.DiffElement.test.js b/modules/ve-mw/tests/ui/ve.ui.DiffElement.test.js index a29e34b8b6..0f63a5452f 100644 --- a/modules/ve-mw/tests/ui/ve.ui.DiffElement.test.js +++ b/modules/ve-mw/tests/ui/ve.ui.DiffElement.test.js @@ -8,7 +8,7 @@ QUnit.module( 've.ui.DiffElement (MW)', ve.test.utils.mwEnvironment ); QUnit.test( 'Diffing', ( assert ) => { const fixBase = ( body ) => - '' + body + '', + '' + body + '', cases = [ { msg: 'Change template param',