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

Unified Diff: tracing/tracing/model/power_series_test.html

Issue 2083213002: Change call-sites in trace viewer to use generators instead of iteration functions. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix break/continue Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/model/power_series_test.html
diff --git a/tracing/tracing/model/power_series_test.html b/tracing/tracing/model/power_series_test.html
index 331307d7e26d277678c5d88ca2940ef173762538..3f0a51bbfcd0acbd46065f2cb0e736584b1c05b3 100644
--- a/tracing/tracing/model/power_series_test.html
+++ b/tracing/tracing/model/power_series_test.html
@@ -128,30 +128,5 @@ tr.b.unittest.testSuite(function() {
assert.equal(series.bounds.min, 0);
assert.equal(series.bounds.max, 4);
});
-
charliea (OOO until 10-5) 2016/06/29 18:08:45 What's the reason for deleting this? It seems like
alexandermont 2016/06/29 20:47:11 Put test back in
- test('iterateAllEventsInThisContainer', function() {
- var series = new PowerSeries(new Model().device);
-
- var eventsInSeries = [];
- series.iterateAllEventsInThisContainer(
- function() { return true; },
- function(event) {
- eventsInSeries.push(event);
- });
-
- assert.deepEqual(eventsInSeries, []);
-
- var sample1 = series.addPowerSample(0, 1);
- var sample2 = series.addPowerSample(1, 2);
-
- eventsInSeries = [];
- series.iterateAllEventsInThisContainer(
- function() { return true; },
- function(event) {
- eventsInSeries.push(event);
- });
-
- assert.deepEqual(eventsInSeries, [sample1, sample2]);
- });
});
</script>

Powered by Google App Engine
This is Rietveld 408576698