Arlolra has uploaded a new change for review.
https://gerrit.wikimedia.org/r/76636
Change subject: Avoid filtering out selser tests.
......................................................................
Avoid filtering out selser tests.
When matching against parsoid options.
Bug: 50982
Change-Id: Ic27328d03288d0cc70c18682ab696654227f086a
---
M js/tests/parserTests.js
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/36/76636/1
diff --git a/js/tests/parserTests.js b/js/tests/parserTests.js
index 4a9768d..e2e3df2 100755
--- a/js/tests/parserTests.js
+++ b/js/tests/parserTests.js
@@ -1651,6 +1651,11 @@
item.options.parsoid =
[ item.options.parsoid ];
}
+ // Avoid filtering out the
selser test
+ if ( options.selser ) {
+
item.options.parsoid.push( "selser" );
+ }
+
targetModes =
targetModes.filter(function(mode) {
return
item.options.parsoid.indexOf( mode ) >= 0;
});
--
To view, visit https://gerrit.wikimedia.org/r/76636
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic27328d03288d0cc70c18682ab696654227f086a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits