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

Unified Diff: tracing/tracing/model/slice_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/slice_group.html ('k') | tracing/tracing/model/thread.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/slice_test.html
diff --git a/tracing/tracing/model/slice_test.html b/tracing/tracing/model/slice_test.html
index 4a71e1364385cf799189825f6204af4b5128a9fd..42352b9396a2ff1bac19ae2ceec6914731daef65 100644
--- a/tracing/tracing/model/slice_test.html
+++ b/tracing/tracing/model/slice_test.html
@@ -47,9 +47,8 @@ tr.b.unittest.testSuite(function() {
group.createSubSlices();
var foundSlices = [];
- sC1.findTopmostSlicesRelativeToThisSlice(PREDICATE, slice => (
- foundSlices.push(slice))
- );
+ for (var slice of sC1.findTopmostSlicesRelativeToThisSlice(PREDICATE))
+ foundSlices.push(slice);
assert.deepEqual([sC1], foundSlices);
});
@@ -69,13 +68,12 @@ tr.b.unittest.testSuite(function() {
group.createSubSlices();
var foundSlices = [];
- sD.findTopmostSlicesRelativeToThisSlice(PREDICATE, slice => (
- foundSlices.push(slice)));
-
+ for (var slice of sD.findTopmostSlicesRelativeToThisSlice(PREDICATE))
+ foundSlices.push(slice);
assert.deepEqual([sC1, sC2], foundSlices);
});
- test('iterateAllDescendents', function() {
+ test('enumerateAllDescendents', function() {
var group = new SliceGroup(newFakeThread());
var sA = group.pushSlice(newSliceEx(
@@ -108,7 +106,7 @@ tr.b.unittest.testSuite(function() {
assert.equal(sC.mostTopLevelSlice, sA);
});
- test('iterateAllAncestors', function() {
+ test('enumerateAllAncestors', function() {
var group = new SliceGroup(newFakeThread());
var sA = group.pushSlice(newSliceEx(
« no previous file with comments | « tracing/tracing/model/slice_group.html ('k') | tracing/tracing/model/thread.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698