Subramanya Sastry has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/393926 )
Change subject: roundtrip-test.js: Strip section tags before comparing DOMs
......................................................................
roundtrip-test.js: Strip section tags before comparing DOMs
Since we don't add DSR info on section tags, they can trip up
roundtrip-test.js error classification code.
This fixes the odd behavior we saw where a vast majority of semantic
errors got classified as syntactic errors.
Change-Id: Iec1d42f7cd943388efc4c4d7d22efd346e8944d8
---
M bin/roundtrip-test.js
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid
refs/changes/26/393926/1
diff --git a/bin/roundtrip-test.js b/bin/roundtrip-test.js
index f3280c6..2f97dda 100755
--- a/bin/roundtrip-test.js
+++ b/bin/roundtrip-test.js
@@ -392,6 +392,10 @@
stripElementIds(oldBody.ownerDocument.body);
stripElementIds(newBody.ownerDocument.body);
+ // Strip section tags from the DOMs
+ DU.stripSectionTags(oldBody.ownerDocument.body);
+ DU.stripSectionTags(newBody.ownerDocument.body);
+
var i, offset;
var results = [];
// Use the full tests for fostered content.
--
To view, visit https://gerrit.wikimedia.org/r/393926
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iec1d42f7cd943388efc4c4d7d22efd346e8944d8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits