Arlolra has uploaded a new change for review.
https://gerrit.wikimedia.org/r/226119
Change subject: Show changed html as input to selser
......................................................................
Show changed html as input to selser
* Currently, input and expected are identical. The edited html is more
useful for distinguishing if html2wt or selser are more accurate.
Change-Id: Iaea59d7bada1ab39cb89284fea0109ac5af9ce05
---
M tests/parserTests.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/19/226119/1
diff --git a/tests/parserTests.js b/tests/parserTests.js
index 968d76e..183cde5 100755
--- a/tests/parserTests.js
+++ b/tests/parserTests.js
@@ -1449,7 +1449,8 @@
// FIXME: normalization not in place yet
var normalizedOut = toWikiText ? out.replace(/\n+$/, '') : out;
- var input = mode === 'html2wt' ? item.html : itemWikitext;
+ var input = mode === 'selser' ? item.changedHTMLStr :
+ mode === 'html2wt' ? item.html : itemWikitext;
var expected = { isWT: true, normal: normalizedExpected, raw:
itemWikitext };
var actual = { isWT: true, normal: normalizedOut, raw: out, input:
input };
--
To view, visit https://gerrit.wikimedia.org/r/226119
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaea59d7bada1ab39cb89284fea0109ac5af9ce05
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits