mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Merge "Add test cases for T313093"
This commit is contained in:
commit
6e00c904cf
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost:3080/wiki/Special:Redirect/revision/6216"><head prefix="mwr: http://localhost:3080/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1611"/><meta property="mw:pageNamespace" content="1"/><link rel="dc:replaces" resource="mwr:revision/6213"/><meta property="mw:revisionSHA1" content="f9e7352bc7532be24c6e0c749d9f103598c8fae4"/><meta property="dc:modified" content="2022-10-08T17:21:41.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="http://localhost:3080/wiki/Talk%3AT265528"/><base href="http://localhost:3080/wiki/"/><title>Talk:T265528</title><link rel="stylesheet" href="/w/load.php?lang=en&modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&only=styles&skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body id="mwAA" lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" id="mwAQ"></section><section data-mw-section-id="1" id="mwAg"><h2 id="test">test</h2>
|
||||
<p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"Hello\n\nHello"}},"i":0}}," [[User:Matma Rex|Matma Rex]] ([[User talk:Matma Rex|talk]]) 00:00, 1 October 2022 (UTC)"]}' id="mwAw">Hello</p><span about="#mwt1">
|
||||
|
||||
</span><p about="#mwt1">Hello <a rel="mw:WikiLink" href="./User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a rel="mw:WikiLink" href="./User_talk:Matma_Rex" title="User talk:Matma Rex">talk</a>) 00:00, 1 October 2022 (UTC)</p></section></body></html>
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"c-Matma_Rex-20221001000000-test": true
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost:3080/wiki/Special:Redirect/revision/6216"><head prefix="mwr: http://localhost:3080/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1611"/><meta property="mw:pageNamespace" content="1"/><link rel="dc:replaces" resource="mwr:revision/6213"/><meta property="mw:revisionSHA1" content="f9e7352bc7532be24c6e0c749d9f103598c8fae4"/><meta property="dc:modified" content="2022-10-08T17:21:41.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="http://localhost:3080/wiki/Talk%3AT265528"/><base href="http://localhost:3080/wiki/"/><title>Talk:T265528</title><link rel="stylesheet" href="/w/load.php?lang=en&modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&only=styles&skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body id="mwAA" lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" id="mwAQ"></section><section data-mw-section-id="1" id="mwAg"><h2 id="test">test</h2>
|
||||
<p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"Hello\n\nHello"}},"i":0}}," [[User:Matma Rex|Matma Rex]] ([[User talk:Matma Rex|talk]]) 00:00, 1 October 2022 (UTC)"]}' id="mwAw">Hello</p><span about="#mwt1">
|
||||
|
||||
</span><p about="#mwt1">Hello <a rel="mw:WikiLink" href="./User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a rel="mw:WikiLink" href="./User_talk:Matma_Rex" title="User talk:Matma Rex">talk</a>) 00:00, 1 October 2022 (UTC)</p></section></body></html>
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost:3080/wiki/Special:Redirect/revision/6215"><head prefix="mwr: http://localhost:3080/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="2021"/><meta property="mw:pageNamespace" content="1"/><link rel="dc:replaces" resource="mwr:revision/6214"/><meta property="mw:revisionSHA1" content="8ffd7cbff72a46009bf1422f5dc6b1c849d13a90"/><meta property="dc:modified" content="2022-10-08T17:21:35.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="http://localhost:3080/wiki/Talk%3AT313093"/><base href="http://localhost:3080/wiki/"/><title>Talk:T313093</title><link rel="stylesheet" href="/w/load.php?lang=en&modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&only=styles&skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body id="mwAA" lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" id="mwAQ"></section><section data-mw-section-id="1" id="mwAg"><h2 id="test">test</h2>
|
||||
<div id="mwAw"></div><p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"Hello"}},"i":0}}," [[User:Matma Rex|Matma Rex]] ([[User talk:Matma Rex|talk]]) 00:00, 1 October 2022 (UTC)"]}' id="mwBA">Hello <a rel="mw:WikiLink" href="./User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a rel="mw:WikiLink" href="./User_talk:Matma_Rex" title="User talk:Matma Rex">talk</a>) 00:00, 1 October 2022 (UTC)</p></section></body></html>
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"c-Matma_Rex-20221001000000-test": true
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
<!DOCTYPE html>
|
||||
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost:3080/wiki/Special:Redirect/revision/6215"><head prefix="mwr: http://localhost:3080/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="2021"/><meta property="mw:pageNamespace" content="1"/><link rel="dc:replaces" resource="mwr:revision/6214"/><meta property="mw:revisionSHA1" content="8ffd7cbff72a46009bf1422f5dc6b1c849d13a90"/><meta property="dc:modified" content="2022-10-08T17:21:35.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="http://localhost:3080/wiki/Talk%3AT313093"/><base href="http://localhost:3080/wiki/"/><title>Talk:T313093</title><link rel="stylesheet" href="/w/load.php?lang=en&modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&only=styles&skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body id="mwAA" lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" id="mwAQ"></section><section data-mw-section-id="1" id="mwAg"><h2 id="test">test</h2>
|
||||
<div id="mwAw"></div><p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"Hello"}},"i":0}}," [[User:Matma Rex|Matma Rex]] ([[User talk:Matma Rex|talk]]) 00:00, 1 October 2022 (UTC)"]}' id="mwBA">Hello <a rel="mw:WikiLink" href="./User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a rel="mw:WikiLink" href="./User_talk:Matma_Rex" title="User talk:Matma Rex">talk</a>) 00:00, 1 October 2022 (UTC)</p></section></body></html>
|
|
@ -177,6 +177,22 @@
|
|||
"config": "../data/eswiki-config.json",
|
||||
"data": "../data/eswiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Accidental complex transclusion (T265528)",
|
||||
"title": "Talk:T265528",
|
||||
"dom": "cases/accidental-transclusion1/accidental-transclusion1.html",
|
||||
"expected": "cases/accidental-transclusion1/accidental-transclusion1-modified.html",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Accidental complex transclusion (T313093)",
|
||||
"title": "Talk:T313093",
|
||||
"dom": "cases/accidental-transclusion2/accidental-transclusion2.html",
|
||||
"expected": "cases/accidental-transclusion2/accidental-transclusion2-modified.html",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Signatures in funny places",
|
||||
"title": "Talk:Signatures funny",
|
||||
|
|
|
@ -31,6 +31,22 @@
|
|||
"config": "../data/itwiki-config.json",
|
||||
"data": "../data/itwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Accidental complex transclusion (T265528)",
|
||||
"title": "Talk:T265528",
|
||||
"dom": "cases/accidental-transclusion1/accidental-transclusion1.html",
|
||||
"expected": "../cases/accidental-transclusion1/accidental-transclusion1-transcludedFrom.json",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "Accidental complex transclusion (T313093)",
|
||||
"title": "Talk:T313093",
|
||||
"dom": "cases/accidental-transclusion2/accidental-transclusion2.html",
|
||||
"expected": "../cases/accidental-transclusion2/accidental-transclusion2-transcludedFrom.json",
|
||||
"config": "../data/enwiki-config.json",
|
||||
"data": "../data/enwiki-data.json"
|
||||
},
|
||||
{
|
||||
"name": "tracked template",
|
||||
"title": "Commons talk:SPARQL query service",
|
||||
|
|
|
@ -25,7 +25,9 @@ require( '../cases/modified.json' ).forEach( function ( caseItem ) {
|
|||
'arwiki no-paragraph parsoid',
|
||||
'enwiki parsoid',
|
||||
'Many comments consisting of a block template and a paragraph',
|
||||
'Comment whose range almost exactly matches a template, but is not considered transcluded (T313100)'
|
||||
'Comment whose range almost exactly matches a template, but is not considered transcluded (T313100)',
|
||||
'Accidental complex transclusion (T265528)',
|
||||
'Accidental complex transclusion (T313093)'
|
||||
];
|
||||
if ( haveTranscludedComments.indexOf( caseItem.name ) !== -1 ) {
|
||||
QUnit.skip( testName );
|
||||
|
|
Loading…
Reference in a new issue