Cscott has uploaded a new change for review.

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

Change subject: Add test case for Parsoid html2wt bug with autourl text.
......................................................................

Add test case for Parsoid html2wt bug with autourl text.

Bug: T78425
Change-Id: I1a22ce17300c4e074391034e0746e39e5f417d8e
---
M tests/parserTests-blacklist.js
M tests/parserTests.txt
2 files changed, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/46/179546/1

diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js
index 8032601..f3b8162 100644
--- a/tests/parserTests-blacklist.js
+++ b/tests/parserTests-blacklist.js
@@ -1043,6 +1043,7 @@
 add("html2wt", "Definition Lists: colons occurring in tags", "; a\n: b\n; 
'''<nowiki>a:b</nowiki>'''\n; ''<nowiki>a:b</nowiki>''\n; 
<span><nowiki>a:b</nowiki></span>\n; <div><nowiki>a:b</nowiki></div>\n; a\n: 
b\n; ''<nowiki>a:b</nowiki>''\n");
 add("html2wt", "Definition Lists: colons and tables 1", ": {|\n\n| x\n|}\n\n: 
{|\n\n| y\n|}\n");
 add("html2wt", "Definition Lists: colons and tables 2", ": {|\n\n| x\n|}\n: 
{|\n\n| y\n|}\n");
+add("html2wt", "External links: free (html2wt) (Parsoid bug T78425)", "this is 
not a link: http://example.com\n";);
 add("html2wt", "External links: URL in text", "URL in text: 
http://example.com\n";);
 add("html2wt", "External links: Clickable images", "ja-style clickable images: 
http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png\n";);
 add("html2wt", "External links: raw ampersand", "Old & use: http://x&y\n";);
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index 4afbc2e..b5bb31d 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -4255,6 +4255,17 @@
 !! end
 
 !! test
+External links: free (html2wt) (Parsoid bug T78425)
+!! options
+parsoid=html2wt
+!! html/*
+<p>this is not a link: http://example.com
+</p>
+!! wikitext
+this is not a link: <nowiki>http://example.com</nowiki>
+!! end
+
+!! test
 External image
 !! wikitext
 External image: http://meta.wikimedia.org/upload/f/f1/Ncwikicol.png

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1a22ce17300c4e074391034e0746e39e5f417d8e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>

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

Reply via email to