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

Unified Diff: tracing/tracing/value/histogram_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
« no previous file with comments | « tracing/tracing/value/histogram.html ('k') | tracing/tracing/value/ui/diagnostic_span.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/histogram_test.html
diff --git a/tracing/tracing/value/histogram_test.html b/tracing/tracing/value/histogram_test.html
index 6599ee7f33840b687e9d6412a015c7a795527d0d..12144bf32c7379e77a6a2380a13db987f88bdd7b 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.
« no previous file with comments | « tracing/tracing/value/histogram.html ('k') | tracing/tracing/value/ui/diagnostic_span.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698