r105422 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105421‎ | r105422 | r105423 >
Date:11:45, 7 December 2011
Author:gwicke
Status:deferred
Tags:
Comment:
Also print out options for failing tests.
Modified paths:
  • /trunk/extensions/VisualEditor/tests/parser/parserTests.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/parser/parserTests.js
@@ -370,6 +370,10 @@
371371 console.log('=====================================================');
372372 console.log('FAILED'.red + ': ' + item.title.yellow);
373373 console.log(item.comments.join('\n'));
 374+ if (item.options) {
 375+ console.log("OPTIONS".cyan + ":");
 376+ console.log(item.options + '\n');
 377+ }
374378 console.log("INPUT".cyan + ":");
375379 console.log(item.input + "\n");
376380 }
@@ -500,6 +504,7 @@
501505 switch(item.type) {
502506 case 'article':
503507 //processArticle(item);
 508+ comments = [];
504509 break;
505510 case 'test':
506511 if( test_filter && -1 === item.title.search( test_filter ) ) {
@@ -515,6 +520,7 @@
516521 comments.push(item.comment);
517522 break;
518523 default:
 524+ comments = [];
519525 break;
520526 }
521527 }

Status & tagging log