Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | var parser = new PegParser(); |
69 | 69 | |
70 | | -var testFileName = '../../../../../tests/parser/parserTests.txt'; // default |
| 70 | +var testFileName = '../../../../phase3/tests/parser/parserTests.txt'; // default |
71 | 71 | if (process.argv.length > 2) { |
72 | 72 | // hack :D |
73 | 73 | testFileName = process.argv[2]; |
— | — | @@ -167,6 +167,7 @@ |
168 | 168 | } |
169 | 169 | |
170 | 170 | function processTokens ( tokens, tokenizer ) { |
| 171 | + // push a body element, just to be sure to have one |
171 | 172 | tokenizer.processToken({type: 'TAG', name: 'body'}); |
172 | 173 | // Process all tokens |
173 | 174 | for (var i = 0, length = tokens.length; i < length; i++) { |