r110499 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110498‎ | r110499 | r110500 >
Date:17:02, 1 February 2012
Author:gwicke
Status:deferred
Tags:
Comment:
Add --debug and --trace options to parserTests as well.
Modified paths:
  • /trunk/extensions/VisualEditor/tests/parser/parserTests.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js
@@ -121,6 +121,16 @@
122122 description: 'Print out a WikiDom conversion of the HTML DOM',
123123 'default': false,
124124 'boolean': true
 125+ },
 126+ 'debug': {
 127+ description: 'Print debugging information',
 128+ 'default': false,
 129+ 'boolean': true
 130+ },
 131+ 'trace': {
 132+ description: 'Print trace information (light debugging)',
 133+ 'default': false,
 134+ 'boolean': true
125135 }
126136 }
127137 ).check( function(argv) {
@@ -188,7 +198,8 @@
189199 // Create a new parser environment
190200 this.env = new MWParserEnvironment({
191201 fetchTemplates: false,
192 - debug: false
 202+ debug: this.argv.debug,
 203+ trace: this.argv.trace
193204 });
194205 }
195206

Status & tagging log