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

Side by Side Diff: tracing/tracing/base/unittest/interactive_test_runner.html

Issue 2955043002: Remove tr.b.asArray. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 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/base.html"> 8 <link rel="import" href="/tracing/base/base.html">
9 <link rel="import" href="/tracing/base/unittest.html"> 9 <link rel="import" href="/tracing/base/unittest.html">
10 <link rel="import" href="/tracing/base/unittest/html_test_results.html"> 10 <link rel="import" href="/tracing/base/unittest/html_test_results.html">
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 this.onTestFailed_ = this.onTestFailed_.bind(this); 188 this.onTestFailed_ = this.onTestFailed_.bind(this);
189 this.onTestFlaky_ = this.onTestFlaky_.bind(this); 189 this.onTestFlaky_ = this.onTestFlaky_.bind(this);
190 this.onTestSkipped_ = this.onTestSkipped_.bind(this); 190 this.onTestSkipped_ = this.onTestSkipped_.bind(this);
191 this.onTestPassed_ = this.onTestPassed_.bind(this); 191 this.onTestPassed_ = this.onTestPassed_.bind(this);
192 192
193 Polymer.dom(this).appendChild(tr.ui.b.instantiateTemplate( 193 Polymer.dom(this).appendChild(tr.ui.b.instantiateTemplate(
194 '#x-base-interactive-test-runner-template', THIS_DOC)); 194 '#x-base-interactive-test-runner-template', THIS_DOC));
195 195
196 Polymer.dom(this).querySelector( 196 Polymer.dom(this).querySelector(
197 'input[name=test-type-to-run][value=unit]').checked = true; 197 'input[name=test-type-to-run][value=unit]').checked = true;
198 const testTypeToRunEls = tr.b.asArray(Polymer.dom(this).querySelectorAll( 198 const testTypeToRunEls = Array.from(Polymer.dom(this).querySelectorAll(
199 'input[name=test-type-to-run]')); 199 'input[name=test-type-to-run]'));
200 200
201 testTypeToRunEls.forEach( 201 testTypeToRunEls.forEach(
202 function(inputEl) { 202 function(inputEl) {
203 inputEl.addEventListener( 203 inputEl.addEventListener(
204 'click', this.onTestTypeToRunClick_.bind(this)); 204 'click', this.onTestTypeToRunClick_.bind(this));
205 }, this); 205 }, this);
206 206
207 const shortFormatEl = Polymer.dom(this).querySelector('#short-format'); 207 const shortFormatEl = Polymer.dom(this).querySelector('#short-format');
208 shortFormatEl.checked = this.shortFormat_; 208 shortFormatEl.checked = this.shortFormat_;
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 loadAndRunTestsImpl(); 727 loadAndRunTestsImpl();
728 } 728 }
729 729
730 return { 730 return {
731 InteractiveTestRunner, 731 InteractiveTestRunner,
732 loadAndRunTests, 732 loadAndRunTests,
733 }; 733 };
734 }); 734 });
735 </script> 735 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/base/multi_dimensional_view_test.html ('k') | tracing/tracing/core/test_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698