From 3cffb489bb120aa9cdc9146a9e631490d73286c9 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Wed, 6 Jan 2016 17:06:44 -0800 Subject: [PATCH] Stop using broken image links in tests They make it a little bit more cluttered to hunt down problems when testing. So, use the minimum image instead of just "Foo" or similar. Bug: T121636 Change-Id: I3209c377ad870f669cac7d40d991968cff52c39e --- modules/ve-mw/tests/dm/ve.dm.mwExample.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/ve-mw/tests/dm/ve.dm.mwExample.js b/modules/ve-mw/tests/dm/ve.dm.mwExample.js index cc968ad5e0..b82283ad06 100644 --- a/modules/ve-mw/tests/dm/ve.dm.mwExample.js +++ b/modules/ve-mw/tests/dm/ve.dm.mwExample.js @@ -256,7 +256,7 @@ ve.dm.mwExample.MWInternalSectionLink.absoluteData = { ve.dm.mwExample.MWBlockImage = { html: '
' + - '' + + '' + '
abc
' + '
', data: [ @@ -266,7 +266,7 @@ ve.dm.mwExample.MWBlockImage = { type: 'thumb', align: 'right', href: 'Foo', - src: 'Bar', + src: ve.ce.minImgDataUri, width: 1, height: 2, resource: 'FooBar', @@ -1171,7 +1171,7 @@ ve.dm.mwExample.domToDataCases = { 'mw:AlienInlineExtension': { body: '

' + - 'Bar' + '

', @@ -1179,7 +1179,7 @@ ve.dm.mwExample.domToDataCases = { '

' + '' + + ' src="' + ve.ce.minImgDataUri + '" width="100" height="20" alt="Bar" data-parsoid="1" about="#mwt1" />' + '

', data: [ { type: 'paragraph' }, @@ -1195,7 +1195,7 @@ ve.dm.mwExample.domToDataCases = { }, originalMw: '{"name":"score","attrs":{},"body":{"extsrc":"\\\\relative c\' { e d c d e e e }"}}' }, - originalDomElements: $( 'Bar' ).toArray() + originalDomElements: $( 'Bar' ).toArray() }, { type: '/mwAlienInlineExtension' }, { type: '/paragraph' }, @@ -1913,7 +1913,7 @@ ve.dm.mwExample.domToDataCases = { body: '
' + '' + - '' + + '' + '' + '
' + ' foo bar baz' + @@ -1922,7 +1922,7 @@ ve.dm.mwExample.domToDataCases = { fromDataBody: '
' + '' + - '' + + '' + '' + '
' + ' foo bar baz' + @@ -1936,7 +1936,7 @@ ve.dm.mwExample.domToDataCases = { type: 'thumb', align: 'default', href: 'Foo', - src: 'Bar', + src: ve.ce.minImgDataUri, width: 1, height: 2, resource: 'FooBar'