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

Unified Diff: tracing/tracing/ui/analysis/flow_classifier_test.html

Issue 2955043002: Remove tr.b.asArray. (Closed)
Patch Set: Created 3 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/ui/analysis/flow_classifier_test.html
diff --git a/tracing/tracing/ui/analysis/flow_classifier_test.html b/tracing/tracing/ui/analysis/flow_classifier_test.html
index a692cf2a8c76373d878a4faa4b5f83446832a618..af9a3701f1f19402a88d0f0cc1132c4962d239a5 100644
--- a/tracing/tracing/ui/analysis/flow_classifier_test.html
+++ b/tracing/tracing/ui/analysis/flow_classifier_test.html
@@ -37,16 +37,16 @@ tr.b.unittest.testSuite(function() {
fc.addOutFlow(d);
function asSortedArray(selection) {
- const events = tr.b.asArray(selection);
+ const events = Array.from(selection);
events.sort(function(a, b) {
return a.guid - b.guid;
});
return events;
}
- assert.deepEqual(tr.b.asArray(fc.inFlowEvents), [a]);
- assert.deepEqual(tr.b.asArray(fc.outFlowEvents), [d]);
- assert.deepEqual(tr.b.asArray(fc.internalFlowEvents), [b, c]);
+ assert.deepEqual(Array.from(fc.inFlowEvents), [a]);
+ assert.deepEqual(Array.from(fc.outFlowEvents), [d]);
+ assert.deepEqual(Array.from(fc.internalFlowEvents), [b, c]);
});
});
</script>

Powered by Google App Engine
This is Rietveld 408576698