Subramanya Sastry has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60815


Change subject: Fixed test stats -- unexpected passing tests output was 
incorrect
......................................................................

Fixed test stats -- unexpected passing tests output was incorrect

Change-Id: I10faa493394f55fa238f38137f9f8fd4e2e36284
---
M js/tests/parserTests.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/15/60815/1

diff --git a/js/tests/parserTests.js b/js/tests/parserTests.js
index 77d4be5..c8d05bf 100755
--- a/js/tests/parserTests.js
+++ b/js/tests/parserTests.js
@@ -1195,7 +1195,7 @@
                        thisMode = stats.modes[modes[i]];
                        if ( thisMode.passedTests + 
thisMode.passedTestsWhitelisted + thisMode.failedTests > 0 ) {
                                curStr += colorizeCount( thisMode.passedTests + 
stats.passedTestsWhitelisted, 'green' ) + ' passed (';
-                               curStr += colorizeCount( 
stats.passedTestsUnexpected, 'red' ) + ' unexpected, ';
+                               curStr += colorizeCount( 
thisMode.passedTestsUnexpected, 'red' ) + ' unexpected, ';
                                curStr += colorizeCount( 
thisMode.passedTestsWhitelisted, 'yellow' ) + ' whitelisted) / ';
                                curStr += colorizeCount( thisMode.failedTests, 
'red' ) + ' failed (';
                                curStr += colorizeCount( 
thisMode.failedTestsUnexpected, 'red') + ' unexpected)';

-- 
To view, visit https://gerrit.wikimedia.org/r/60815
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I10faa493394f55fa238f38137f9f8fd4e2e36284
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to