jenkins-bot has submitted this change and it was merged.
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, 13 insertions(+), 0 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js
index 8032601..8056d03 100644
--- a/tests/parserTests-blacklist.js
+++ b/tests/parserTests-blacklist.js
@@ -1756,6 +1756,7 @@
add("html2wt", "Lists: 3. Only bullets at start of text should be escaped", "*
<nowiki>*foo*bar</nowiki>\n\n* <nowiki>*foo</nowiki>''it''*bar\n");
add("html2wt", "Lists: 4. No escapes needed", "* foo*bar\n\n* ''foo''*bar\n\n*
[[Foo]]: bar\n\n* [[Foo]]*bar\n");
add("html2wt", "Lists: 5. No unnecessary escapes", "* bar
<span><nowiki>[[foo]]</nowiki></span>\n\n* =bar
<span><nowiki>[[foo]]</nowiki></span>\n\n* [[bar
<span><nowiki>[[foo]]</nowiki></span>\n\n* ]]bar
<span><nowiki>[[foo]]</nowiki></span>\n\n* =bar <span>foo]]</span>=\n\n*
<s></s>: a\n");
+add("html2wt", "Links 13: Protect link-like plain text. (Parsoid bug T78425)",
"this is not a link: http://example.com\n");
add("html2wt", "1. Leading whitespace in SOL context should be escaped",
"<nowiki> </nowiki>a\n\n<nowiki> </nowiki> a\n\n\ta(tab)\n\n
\ta\n\n<!--cmt--><nowiki> </nowiki> a\n\na\n<nowiki>
</nowiki>b\n\na\n\tb\n\na\n\t b\n");
add("html2wt", "3. Leading whitespace in indent-pre suppressing contexts
should not be escaped", "<blockquote>\n\n a\n <span>b</span>\n
c\n</blockquote>");
add("html2wt", "HTML tag with 'unnecessary' entity encoding in attributes",
"<span title=\"&\">foo</span>\n");
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index 4afbc2e..c820e69 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -20757,6 +20757,18 @@
ISBN 1234567890's
!! end
+!! test
+Links 13: Protect link-like plain text. (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
+
+
#### --------------- Quotes ---------------
#### 1. Quotes inside <b> and <i>
#### 2. Link fragments separated by <i> and <b> tags
--
To view, visit https://gerrit.wikimedia.org/r/179546
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1a22ce17300c4e074391034e0746e39e5f417d8e
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Cscott <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits