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

Unified Diff: tracing/tracing/model/ir_coverage_test.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/model/ir_coverage.html ('k') | tracing/tracing/model/kernel.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/ir_coverage_test.html
diff --git a/tracing/tracing/model/ir_coverage_test.html b/tracing/tracing/model/ir_coverage_test.html
index c3ab2d8ebf7e6834c0c6dc69d5d2e9fc52b975d3..e8a1637e60d3a1061fb5990347033d91d7a36c79 100644
--- a/tracing/tracing/model/ir_coverage_test.html
+++ b/tracing/tracing/model/ir_coverage_test.html
@@ -58,13 +58,13 @@ tr.b.unittest.testSuite(function() {
test('computeCoverage', function() {
var model = createModel();
- model.iterateAllEvents(function(event) {
+ for (var event of model.getDescendantEvents()) {
if (event.title === 's0' || event.title === 's2') {
event.cpuSelfTime = 0.4;
} else if (event.title === 's1') {
event.cpuSelfTime = 0.8;
}
- });
+ }
var coverage = tr.model.getIRCoverageFromModel(model);
assert.equal(3, coverage.associatedEventsCount);
« no previous file with comments | « tracing/tracing/model/ir_coverage.html ('k') | tracing/tracing/model/kernel.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698