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

Side by Side Diff: tracing/tracing/model/interaction_record_test.html

Issue 1730313007: Metric-ify SystemHealth metrics (Closed) Base URL: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. 3 Copyright (c) 2013 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/core/test_utils.html"> 8 <link rel="import" href="/tracing/core/test_utils.html">
9 <link rel="import" href="/tracing/model/model.html">
9 <link rel="import" href="/tracing/model/user_model/stub_expectation.html"> 10 <link rel="import" href="/tracing/model/user_model/stub_expectation.html">
10 <link rel="import" href="/tracing/model/model.html">
11 11
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 14
15 tr.b.unittest.testSuite(function() { 15 tr.b.unittest.testSuite(function() {
16 var TestUtils = tr.c.TestUtils; 16 var TestUtils = tr.c.TestUtils;
17 var CompoundEventSelectionState = tr.model.CompoundEventSelectionState; 17 var CompoundEventSelectionState = tr.model.CompoundEventSelectionState;
18 18
19 function createModel(opt_customizeModelCallback) { 19 function createModel(opt_customizeModelCallback) {
20 return TestUtils.newModel(function(model) { 20 return TestUtils.newModel(function(model) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 test('stableId', function() { 101 test('stableId', function() {
102 var model = TestUtils.newModel(); 102 var model = TestUtils.newModel();
103 103
104 var ir1 = model.userModel.expectations.push( 104 var ir1 = model.userModel.expectations.push(
105 TestUtils.newInteractionRecord(model, 0, 10)); 105 TestUtils.newInteractionRecord(model, 0, 10));
106 var ir2 = model.userModel.expectations.push( 106 var ir2 = model.userModel.expectations.push(
107 TestUtils.newInteractionRecord(model, 10, 10)); 107 TestUtils.newInteractionRecord(model, 10, 10));
108 var ir3 = model.userModel.expectations.push( 108 var ir3 = model.userModel.expectations.push(
109 TestUtils.newInteractionRecord(model, 20, 10)); 109 TestUtils.newInteractionRecord(model, 20, 10));
110 110
111 assert.equal('IR.0', ir1.stableId); 111 assert.equal('UserExpectation.0', ir1.stableId);
112 assert.equal('IR.1', ir2.stableId); 112 assert.equal('UserExpectation.1', ir2.stableId);
113 assert.equal('IR.2', ir3.stableId); 113 assert.equal('UserExpectation.2', ir3.stableId);
114 }); 114 });
115 115
116 }); 116 });
117 </script> 117 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698