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

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

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/model/device.html ('k') | tracing/tracing/model/event_container.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/device_test.html
diff --git a/tracing/tracing/model/device_test.html b/tracing/tracing/model/device_test.html
index e1c5693369209849b4fe2979d485b51191e87d55..5457e65a1ff8f03aeb0dc84d2797e61986e22a61 100644
--- a/tracing/tracing/model/device_test.html
+++ b/tracing/tracing/model/device_test.html
@@ -50,26 +50,22 @@ tr.b.unittest.testSuite(function() {
assert.equal(device.powerSeries.samples[1].start, 202);
});
- test('iterateAllChildEventContainers', function() {
+ test('childEventContainers_noPowerSeries', function() {
var device = new Device(new Model());
-
- // Power series shouldn't be included as a child until one's set.
var childEventContainers = [];
- device.iterateAllChildEventContainers(function(eventContainer) {
- childEventContainers.push(eventContainer);
- });
-
+ for (var container of device.childEventContainers())
+ childEventContainers.push(container);
assert.deepEqual(childEventContainers, []);
+ });
+ test('childEventContainers_powerSeries', function() {
+ var device = new Device(new Model());
device.powerSeries = new PowerSeries(device);
-
- // Verify that the power series is now included as a child.
var childEventContainers = [];
- device.iterateAllChildEventContainers(function(eventContainer) {
- childEventContainers.push(eventContainer);
- });
-
+ for (var container of device.childEventContainers())
+ childEventContainers.push(container);
assert.deepEqual(childEventContainers, [device.powerSeries]);
});
+
});
</script>
« no previous file with comments | « tracing/tracing/model/device.html ('k') | tracing/tracing/model/event_container.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698