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

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

Issue 2390373003: Change all == to === and != to !== in trace viewer. (Closed)
Patch Set: Created 4 years, 2 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 <link rel="import" href="/tracing/base/event_target.html">
7 <link rel="import" href="/tracing/base/raf.html"> 8 <link rel="import" href="/tracing/base/raf.html">
8 <link rel="import" href="/tracing/base/timing.html"> 9 <link rel="import" href="/tracing/base/timing.html">
9 <link rel="import" href="/tracing/base/event_target.html">
10 <script> 10 <script>
11 'use strict'; 11 'use strict';
12 12
13 tr.exportTo('tr.b.unittest', function() { 13 tr.exportTo('tr.b.unittest', function() {
14 var realTvOnAnimationFrameError; 14 var realTvOnAnimationFrameError;
15 var realGlobalOnError; 15 var realGlobalOnError;
16 var realGlobalHistoryPushState; 16 var realGlobalHistoryPushState;
17 17
18 var NUM_TESTS_PER_RIC = 16; 18 var NUM_TESTS_PER_RIC = 16;
19 19
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 this.numRunsSinceLastRIC_ = 0; 132 this.numRunsSinceLastRIC_ = 0;
133 tr.b.requestIdleCallback(this.runOneTestCase_, this); 133 tr.b.requestIdleCallback(this.runOneTestCase_, this);
134 } else { 134 } else {
135 Promise.resolve().then(this.runOneTestCase_.bind(this)); 135 Promise.resolve().then(this.runOneTestCase_.bind(this));
136 } 136 }
137 }, 137 },
138 138
139 runOneTestCase_: function() { 139 runOneTestCase_: function() {
140 this.runOneTestCaseScheduled_ = false; 140 this.runOneTestCaseScheduled_ = false;
141 141
142 if (this.pendingTestCases_.length == 0) { 142 if (this.pendingTestCases_.length === 0) {
143 this.didFinishRunningAllTests_(); 143 this.didFinishRunningAllTests_();
144 return; 144 return;
145 } 145 }
146 146
147 this.currentTestCase_ = this.pendingTestCases_.splice(0, 1)[0]; 147 this.currentTestCase_ = this.pendingTestCases_.splice(0, 1)[0];
148 this.currentMark_ = tr.b.Timing.mark( 148 this.currentMark_ = tr.b.Timing.mark(
149 'TestRunner', 'RunTest', {testName: this.currentTestCase_.name}); 149 'TestRunner', 'RunTest', {testName: this.currentTestCase_.name});
150 this.results_.willRunTest(this.currentTestCase_); 150 this.results_.willRunTest(this.currentTestCase_);
151 151
152 if (this.isCurrentTestFlaky_()) { 152 if (this.isCurrentTestFlaky_()) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 } 264 }
265 }; 265 };
266 266
267 tr.b.EventTarget.decorate(TestRunner); 267 tr.b.EventTarget.decorate(TestRunner);
268 268
269 return { 269 return {
270 TestRunner: TestRunner 270 TestRunner: TestRunner
271 }; 271 };
272 }); 272 });
273 </script> 273 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698