Esanders has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/70133


Change subject: (WIP) Failing test case for duplicate templates bug
......................................................................

(WIP) Failing test case for duplicate templates bug

Bug: 50079
Change-Id: Ib13bb206c49b1f5b186e40632a5c109def0f042e
---
M modules/ve/test/dm/ve.dm.example.js
1 file changed, 56 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/33/70133/1

diff --git a/modules/ve/test/dm/ve.dm.example.js 
b/modules/ve/test/dm/ve.dm.example.js
index 3a7c12c..3c7345f 100644
--- a/modules/ve/test/dm/ve.dm.example.js
+++ b/modules/ve/test/dm/ve.dm.example.js
@@ -1105,6 +1105,62 @@
                },
                'normalizedHtml': 
ve.dm.example.MWTransclusion.inlineOpenModified + 
ve.dm.example.MWTransclusion.inlineClose
        },
+       'two mw:Transclusion nodes with identical params but different 
htmlAttributes': {
+               'html': '<body>' +
+                       '<p about="#mwt1" typeof="mw:Transclusion" 
data-mw="{&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;foo&quot;}}}" 
data-parsoid="1">foo</p>' +
+                       '<p about="#mwt2" typeof="mw:Transclusion" 
data-mw="{&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;foo&quot;}}}" 
data-parsoid="2">foo</p>' +
+               '</body>',
+               'data': [
+                       {
+                               'type': 'mwTransclusionBlock',
+                               'attributes': {
+                                       'mw': {
+                                               'params': { '1': { 'wt': 'foo' 
} }
+                                       },
+                                       'originalIndex': 0
+                               },
+                               'htmlAttributes': [
+                                       {
+                                               'values': {
+                                                       'about': '#mwt1',
+                                                       'data-mw': 
'{"params":{"1":{"wt":"foo"}}}',
+                                                       'data-parsoid': '1',
+                                                       'typeof': 
'mw:Transclusion'
+                                               }
+                                       }
+                               ]
+                       },
+                       { 'type': '/mwTransclusionBlock' },
+                       {
+                               'type': 'mwTransclusionBlock',
+                               'attributes': {
+                                       'mw': {
+                                               'params': { '1': { 'wt': 'foo' 
} }
+                                       },
+                                       'originalIndex': 0
+                               },
+                               'htmlAttributes': [
+                                       {
+                                               'values': {
+                                                       'about': '#mwt2',
+                                                       'data-mw': 
'{"params":{"1":{"wt":"foo"}}}',
+                                                       'data-parsoid': '2',
+                                                       'typeof': 
'mw:Transclusion'
+                                               }
+                                       }
+                               ]
+                       },
+                       { 'type': '/mwTransclusionBlock' },
+                       { 'type': 'internalList' },
+                       { 'type': '/internalList' }
+               ],
+               'storeItems': [
+                       {
+                               'hash': 
'{"mw":{"params":{"1":{"wt":"foo"}}},"type":"mwTransclusionBlock"}',
+                               'value': $( '<p about="#mwt1" 
typeof="mw:Transclusion" 
data-mw="{&quot;params&quot;:{&quot;1&quot;:{&quot;wt&quot;:&quot;foo&quot;}}}" 
data-parsoid="1">foo</p>' ).toArray()
+                       }
+               ]
+       },
        'mw:Reference': {
                'html':
                        '<body>' +

-- 
To view, visit https://gerrit.wikimedia.org/r/70133
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib13bb206c49b1f5b186e40632a5c109def0f042e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to