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

Unified Diff: tracing/tracing/extras/importer/trace_event_importer_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_test.html
diff --git a/tracing/tracing/extras/importer/trace_event_importer_test.html b/tracing/tracing/extras/importer/trace_event_importer_test.html
index 921212abae46555f2c8b9dbdb15ef26b91d10554..c14519628b512328836f0717dbee7ad9527594f9 100644
--- a/tracing/tracing/extras/importer/trace_event_importer_test.html
+++ b/tracing/tracing/extras/importer/trace_event_importer_test.html
@@ -65,8 +65,9 @@ tr.b.unittest.testSuite(function() {
function getFrame(heapEntry, distance) {
var frame = heapEntry.leafStackFrame;
- for (; distance > 0; distance--)
+ for (; distance > 0; distance--) {
frame = frame.parentFrame;
+ }
return frame;
}
@@ -2647,8 +2648,9 @@ tr.b.unittest.testSuite(function() {
assert.equal(m.flowIntervalTree.size, 3);
var order = m.flowEvents.map(function(x) { return x.start; });
- for (var i = 0; i < expected.length; ++i)
+ for (var i = 0; i < expected.length; ++i) {
assert.closeTo(expected[i], order[i], 1e-5);
+ }
});
test('importCompleteEvent', function() {
@@ -2855,8 +2857,9 @@ tr.b.unittest.testSuite(function() {
// and use 'seq' to track the order of when the event is recorded.
events.push({name: 'a', cat: 'foo', id: 72, pid: 52, tid: 53, ts: 0, ph: 'S', args: {'seq': 0}}); // @suppress longLineCheck
- for (var i = 1; i <= 1000; i++)
+ for (var i = 1; i <= 1000; i++) {
events.push({name: 'a', cat: 'foo', id: 72, pid: 52, tid: 53, ts: Math.round(i / 2), ph: 'T', args: {'seq': i}}); // @suppress longLineCheck
+ }
events.push({name: 'a', cat: 'foo', id: 72, pid: 52, tid: 53, ts: 1000, ph: 'F', args: {'seq': 1001}}); // @suppress longLineCheck
@@ -4107,8 +4110,9 @@ tr.b.unittest.testSuite(function() {
pmdSpecifications.forEach(function(singlePmdSpecifications, pid) {
singlePmdSpecifications.forEach(function(singlePmdSpecification) {
var dumps = {};
- if (singlePmdSpecification.levelOfDetail !== undefined)
+ if (singlePmdSpecification.levelOfDetail !== undefined) {
dumps.level_of_detail = singlePmdSpecification.levelOfDetail;
+ }
if (singlePmdSpecification.vmRegions) {
dumps.process_mmaps = {
vm_regions: [
« no previous file with comments | « tracing/tracing/extras/importer/trace_event_importer_perf_test.html ('k') | tracing/tracing/extras/importer/v8/codemap.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698