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

Side by Side Diff: tracing/tracing/ui/analysis/single_power_sample_sub_view_test.html

Issue 2995843002: Merge iteration_helpers into utils.html. (Closed)
Patch Set: Created 3 years, 4 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 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/utils.html">
9 <link rel="import" href="/tracing/model/event_set.html"> 9 <link rel="import" href="/tracing/model/event_set.html">
10 <link rel="import" href="/tracing/model/model.html"> 10 <link rel="import" href="/tracing/model/model.html">
11 <link rel="import" href="/tracing/model/power_series.html"> 11 <link rel="import" href="/tracing/model/power_series.html">
12 <link rel="import" href="/tracing/ui/analysis/single_power_sample_sub_view.html" > 12 <link rel="import" href="/tracing/ui/analysis/single_power_sample_sub_view.html" >
13 13
14 <script> 14 <script>
15 'use strict'; 15 'use strict';
16 16
17 tr.b.unittest.testSuite(function() { 17 tr.b.unittest.testSuite(function() {
18 test('instantiate', function() { 18 test('instantiate', function() {
(...skipping 14 matching lines...) Expand all
33 33
34 const view = document.createElement('tr-ui-a-single-power-sample-sub-view'); 34 const view = document.createElement('tr-ui-a-single-power-sample-sub-view');
35 const eventSet = new tr.model.EventSet(series.samples); 35 const eventSet = new tr.model.EventSet(series.samples);
36 view.selection = eventSet; 36 view.selection = eventSet;
37 37
38 assert.deepEqual(view.$.samplesTable.sample, 38 assert.deepEqual(view.$.samplesTable.sample,
39 tr.b.getOnlyElement(series.samples)); 39 tr.b.getOnlyElement(series.samples));
40 }); 40 });
41 }); 41 });
42 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698