Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: tracing/tracing/base/unittest/text_test_results.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/base/unittest/test_suite.html ('k') | tracing/tracing/base/utils.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/unittest/text_test_results.html
diff --git a/tracing/tracing/base/unittest/text_test_results.html b/tracing/tracing/base/unittest/text_test_results.html
index dd79d03500ef967100a97d501c747e9626aeb178..cd4c7067af1c367931543c16be9b2f416810ecda 100644
--- a/tracing/tracing/base/unittest/text_test_results.html
+++ b/tracing/tracing/base/unittest/text_test_results.html
@@ -51,8 +51,7 @@ tr.exportTo('tr.b.unittest', function() {
},
addErrorForCurrentTest: function(error) {
- if (!this.currentTestCaseHadErrors_)
- this.write_('FAIL\n');
+ if (!this.currentTestCaseHadErrors_) this.write_('FAIL\n');
var normalizedException = tr.b.normalizeException(error);
this.write_(normalizedException.stack + '\n');
this.currentTestCaseHadErrors_ = true;
@@ -63,8 +62,7 @@ tr.exportTo('tr.b.unittest', function() {
},
setCurrentTestFlaky: function() {
- if (!this.currentTestIsFlaky_)
- this.write_('FLAKY\n');
+ if (!this.currentTestIsFlaky_) this.write_('FLAKY\n');
this.currentTestIsFlaky_ = true;
},
@@ -86,10 +84,11 @@ tr.exportTo('tr.b.unittest', function() {
didRunTests: function() {
this.write_('\n------------------------------------------------------' +
'----------------\n');
- if (this.numTestsThatRan === 1)
+ if (this.numTestsThatRan === 1) {
this.write_('Ran 1 test\n');
- else
+ } else {
this.write_('Ran ' + this.numTestsThatRan + ' tests\n');
+ }
if (this.numTestsThatFailed > 0) {
var flakyString = this.numFlakyTests === 0 ? '' :
@@ -104,10 +103,11 @@ tr.exportTo('tr.b.unittest', function() {
},
write_: function(msg) {
- if (tr.isVinn)
+ if (tr.isVinn) {
global.write(msg);
- else
+ } else {
console.log(msg);
+ }
}
};
« no previous file with comments | « tracing/tracing/base/unittest/test_suite.html ('k') | tracing/tracing/base/utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698