Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -121,6 +121,16 @@ |
122 | 122 | description: 'Print out a WikiDom conversion of the HTML DOM', |
123 | 123 | 'default': false, |
124 | 124 | '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 |
125 | 135 | } |
126 | 136 | } |
127 | 137 | ).check( function(argv) { |
— | — | @@ -188,7 +198,8 @@ |
189 | 199 | // Create a new parser environment |
190 | 200 | this.env = new MWParserEnvironment({ |
191 | 201 | fetchTemplates: false, |
192 | | - debug: false |
| 202 | + debug: this.argv.debug, |
| 203 | + trace: this.argv.trace |
193 | 204 | }); |
194 | 205 | } |
195 | 206 | |