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

Unified Diff: tracing/tracing/value/histogram_test.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: Fix test 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/value/histogram_test.html
diff --git a/tracing/tracing/value/histogram_test.html b/tracing/tracing/value/histogram_test.html
index b459ce57e2db9915daef46b6644a3f765c2f5652..470f4a05be85eeeeecb6076aeaf464d8f3caf6fe 100644
--- a/tracing/tracing/value/histogram_test.html
+++ b/tracing/tracing/value/histogram_test.html
@@ -393,8 +393,9 @@ tr.b.unittest.testSuite(function() {
check([0, 11], 0.5, 10.5, 10, 1);
check([0, 6, 11], 0.5, 10.5, 10, 1);
let array = [];
- for (let i = 0; i < 1000; i++)
+ for (let i = 0; i < 1000; i++) {
array.push((i * i) % 10 + 1);
+ }
check(array, 0.5, 10.5, 10, 1e-3);
// If the real percentile is outside the bin range then the approximation
// error can be high.

Powered by Google App Engine
This is Rietveld 408576698