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

Side by Side Diff: tracing/tracing/ui/find_controller_test.html

Issue 1923953003: [polymer] Switches .appendChild() to Polymer.dom()...appendChild() (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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/base/task.html"> 8 <link rel="import" href="/tracing/base/task.html">
9 <link rel="import" href="/tracing/core/test_utils.html"> 9 <link rel="import" href="/tracing/core/test_utils.html">
10 <link rel="import" href="/tracing/model/event_set.html"> 10 <link rel="import" href="/tracing/model/event_set.html">
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 var t1 = p1.getOrCreateThread(1); 214 var t1 = p1.getOrCreateThread(1);
215 t1.sliceGroup.pushSlice(new tr.model.ThreadSlice( 215 t1.sliceGroup.pushSlice(new tr.model.ThreadSlice(
216 '', 'a', 0, 1, {}, 3)); 216 '', 'a', 0, 1, {}, 3));
217 model.t1 = t1; 217 model.t1 = t1;
218 }); 218 });
219 219
220 var container = document.createElement('track-view-container'); 220 var container = document.createElement('track-view-container');
221 container.id = 'track_view_container'; 221 container.id = 'track_view_container';
222 222
223 var timeline = document.createElement('tr-ui-timeline-view'); 223 var timeline = document.createElement('tr-ui-timeline-view');
224 timeline.appendChild(container); 224 Polymer.dom(timeline).appendChild(container);
225 225
226 // This is for testing only, have to make sure things link up right. 226 // This is for testing only, have to make sure things link up right.
227 timeline.trackViewContainer_ = container; 227 timeline.trackViewContainer_ = container;
228 228
229 timeline.model = model; 229 timeline.model = model;
230 230
231 var brushingStateController = timeline.brushingStateController; 231 var brushingStateController = timeline.brushingStateController;
232 var controller = timeline.findCtl_.controller; 232 var controller = timeline.findCtl_.controller;
233 233
234 // Test find with no filterText. 234 // Test find with no filterText.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 findTextChangedToCalled = true; 299 findTextChangedToCalled = true;
300 }; 300 };
301 brushingStateController.findTextCleared = function() { 301 brushingStateController.findTextCleared = function() {
302 assert.equal(findTextChangedToCalled, true); 302 assert.equal(findTextChangedToCalled, true);
303 }; 303 };
304 controller.startFiltering('1'); 304 controller.startFiltering('1');
305 controller.startFiltering(''); 305 controller.startFiltering('');
306 }); 306 });
307 }); 307 });
308 </script> 308 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/extras/system_stats/system_stats_snapshot_view.html ('k') | tracing/tracing/ui/metrics_debugger_app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698