r103462 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103461‎ | r103462 | r103463 >
Date:14:42, 17 November 2011
Author:catrope
Status:deferred
Tags:
Comment:
Make the selectNodes tests log their failures to the console
Modified paths:
  • /trunk/extensions/VisualEditor/tests/es/es.DocumentBranchNode.test.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/tests/es/es.DocumentBranchNode.test.js
@@ -925,6 +925,11 @@
926926 ' (from ' + selectNodesTests[i].input.start +
927927 ' to ' + selectNodesTests[i].input.end + ')'
928928 );
 929+ if ( console && console.log && !compare( result, selectNodesTests[i].output ) ) {
 930+ console.log("Test " + (i+1) + " FAILED");
 931+ console.log( result );
 932+ console.log( selectNodesTests[i].output );
 933+ }
929934 } else if ( 'exception' in selectNodesTests[i] ) {
930935 raises(
931936 function() {

Status & tagging log