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

Unified Diff: tracing/tracing/extras/importer/trace_event_importer_perf_test.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
Index: tracing/tracing/extras/importer/trace_event_importer_perf_test.html
diff --git a/tracing/tracing/extras/importer/trace_event_importer_perf_test.html b/tracing/tracing/extras/importer/trace_event_importer_perf_test.html
index 30776ca818e5d1a89c5be74d20d93651ddbb47ae..f0bb0e37d30e243fd3db3e623bec61d3c690cb11 100644
--- a/tracing/tracing/extras/importer/trace_event_importer_perf_test.html
+++ b/tracing/tracing/extras/importer/trace_event_importer_perf_test.html
@@ -23,20 +23,23 @@ tr.b.unittest.testSuite(function() {
'/test_data/lthi_cats.json.gz'];
function getEvents(url) {
- if (url in eventStrings)
+ if (url in eventStrings) {
return eventStrings[url];
+ }
eventStrings[url] = tr.b.getSync(url);
return eventStrings[url];
}
function timedPerfTestWithEvents(name, testFn, initialOptions) {
- if (initialOptions.setUp)
+ if (initialOptions.setUp) {
throw new Error(
'Per-test setUp not supported. Trivial to fix if needed.');
+ }
var options = {};
- for (var k in initialOptions)
+ for (var k in initialOptions) {
options[k] = initialOptions[k];
+ }
options.setUp = function() {
TEST_FILES_PATHS.forEach(
function warmup(url) {

Powered by Google App Engine
This is Rietveld 408576698