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

Side by Side Diff: tracing/tracing/model/global_memory_dump_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 unified diff | Download patch
« no previous file with comments | « tracing/tracing/model/clock_sync_manager.html ('k') | tracing/tracing/model/slice_group.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright 2015 The Chromium Authors. All rights reserved. 3 Copyright 2015 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/iteration_helpers.html"> 8 <link rel="import" href="/tracing/base/iteration_helpers.html">
9 <link rel="import" href="/tracing/base/unit.html"> 9 <link rel="import" href="/tracing/base/unit.html">
10 <link rel="import" href="/tracing/core/test_utils.html"> 10 <link rel="import" href="/tracing/core/test_utils.html">
(...skipping 3586 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 3597
3598 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName( 3598 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName(
3599 'root/directly_weak_child')); 3599 'root/directly_weak_child'));
3600 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName( 3600 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName(
3601 'root/indirectly_weak_child')); 3601 'root/indirectly_weak_child'));
3602 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName( 3602 assert.isUndefined(pmd.getMemoryAllocatorDumpByFullName(
3603 'root/separate_weak_child')); 3603 'root/separate_weak_child'));
3604 }); 3604 });
3605 3605
3606 test('indicesUpdatedCorrectly', function() { 3606 test('indicesUpdatedCorrectly', function() {
3607 var gmd, rootDump, childDump; 3607 var gmd;
3608 var rootDump;
3609 var childDump;
3608 var model = tr.c.TestUtils.newModel(function(model) { 3610 var model = tr.c.TestUtils.newModel(function(model) {
3609 gmd = new GlobalMemoryDump(model, 10); 3611 gmd = new GlobalMemoryDump(model, 10);
3610 model.globalMemoryDumps.push(gmd); 3612 model.globalMemoryDumps.push(gmd);
3611 3613
3612 rootDump = newAllocatorDump(gmd, 'root', {numerics: {size: 64}}); 3614 rootDump = newAllocatorDump(gmd, 'root', {numerics: {size: 64}});
3613 childDump = addChildDump(rootDump, 'child', {numerics: {size: 48}}); 3615 childDump = addChildDump(rootDump, 'child', {numerics: {size: 48}});
3614 3616
3615 gmd.memoryAllocatorDumps = [rootDump]; 3617 gmd.memoryAllocatorDumps = [rootDump];
3616 3618
3617 // Before model is finalized. 3619 // Before model is finalized.
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
3934 'name': 'child7', 3936 'name': 'child7',
3935 'guid': 7, 3937 'guid': 7,
3936 'owns': 4 3938 'owns': 4
3937 } 3939 }
3938 ] 3940 ]
3939 } 3941 }
3940 ] 3942 ]
3941 ]); 3943 ]);
3942 }); 3944 });
3943 </script> 3945 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/model/clock_sync_manager.html ('k') | tracing/tracing/model/slice_group.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698