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

Unified Diff: tracing/tracing/metrics/v8/utils_test.html

Issue 2432993005: Turn on eslint rule one-var and fix existing errors. (Closed)
Patch Set: Created 4 years, 2 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/metrics/compare_samples_cmdline.html ('k') | tracing/tracing/model/clock_sync_manager.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/metrics/v8/utils_test.html
diff --git a/tracing/tracing/metrics/v8/utils_test.html b/tracing/tracing/metrics/v8/utils_test.html
index d960faf5c39e279cd67b76556044f75d3e4273e7..435b4712a069f3929fed6e4a8a467e38bf9d1f06 100644
--- a/tracing/tracing/metrics/v8/utils_test.html
+++ b/tracing/tracing/metrics/v8/utils_test.html
@@ -75,7 +75,8 @@ tr.b.unittest.testSuite(function() {
}
test('unionOfIntervals', function() {
- var list, union;
+ var list;
+ var union;
assert.deepEqual(unionOfIntervals([]), []);
assert.deepEqual(unionOfIntervals([interval(1, 1)]), [interval(1, 1)]);
assert.deepEqual(
@@ -126,16 +127,15 @@ tr.b.unittest.testSuite(function() {
});
test('mutatorUtilization', function() {
- var pauses, actual, expected;
- pauses = [interval(10, 20),
- interval(15, 23),
- interval(30, 31),
- interval(33, 34),
- interval(60, 61),
- interval(61, 63),
- interval(80, 88)];
- actual = tr.metrics.v8.utils.mutatorUtilization(0, 100, 7, pauses);
- expected = mutatorUtilizationSlow(0, 100, 7, pauses);
+ var pauses = [interval(10, 20),
+ interval(15, 23),
+ interval(30, 31),
+ interval(33, 34),
+ interval(60, 61),
+ interval(61, 63),
+ interval(80, 88)];
+ var actual = tr.metrics.v8.utils.mutatorUtilization(0, 100, 7, pauses);
+ var expected = mutatorUtilizationSlow(0, 100, 7, pauses);
assert.closeTo(expected.average, actual.average, 1e-3);
assert.closeTo(expected.max, actual.max, 1e-3);
assert.closeTo(expected.min, actual.min, 1e-3);
« no previous file with comments | « tracing/tracing/metrics/compare_samples_cmdline.html ('k') | tracing/tracing/model/clock_sync_manager.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698