Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | path = require('path'), |
20 | 20 | jsDiff = require('diff'), |
21 | 21 | colors = require('colors'), |
| 22 | + util = require( 'util' ), |
22 | 23 | HTML5 = require('html5').HTML5; |
23 | 24 | |
24 | 25 | // Name of file used to cache the parser tests cases |
— | — | @@ -386,7 +387,9 @@ |
387 | 388 | }); |
388 | 389 | //var res = es.HtmlSerializer.stringify(tokens,environment); |
389 | 390 | //console.log(JSON.stringify(tokens)); |
390 | | - |
| 391 | + //Slightly better token output debugging: |
| 392 | + //console.log( util.inspect( tokens, false, null ).yellow); |
| 393 | + |
391 | 394 | // Build a DOM tree from tokens using the HTML tree |
392 | 395 | // builder/parser. |
393 | 396 | processTokens(tokens, tokenizer); |