Marcoil has uploaded a new change for review.
https://gerrit.wikimedia.org/r/61422
Change subject: Enable subpage option in tests. When set, it will enable
subpages in the main namespace.
......................................................................
Enable subpage option in tests. When set, it will enable subpages
in the main namespace.
Change-Id: I6add723712565d8ccdea369b842d29c3eb11833e
---
M js/tests/parserTests.js
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/22/61422/1
diff --git a/js/tests/parserTests.js b/js/tests/parserTests.js
index ef2381d..53ca18a 100755
--- a/js/tests/parserTests.js
+++ b/js/tests/parserTests.js
@@ -725,6 +725,12 @@
if ( item.options.extensions !== undefined ) {
extensions = item.options.extensions.split( ' ' );
}
+
+ if ( item.options.subpage !== undefined ) {
+ this.env.conf.wiki.namespacesWithSubpages[0] = true;
+ } else {
+ delete this.env.conf.wiki.namespacesWithSubpages[0];
+ }
}
item.extensions = extensions;
--
To view, visit https://gerrit.wikimedia.org/r/61422
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6add723712565d8ccdea369b842d29c3eb11833e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Marcoil <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits