rename TracingCategory to TimelineStream (#3822)

This commit is contained in:
Hans Muller
2016-05-09 17:00:49 -07:00
parent 36d437d6f2
commit 770f8f1d0c
4 changed files with 31 additions and 31 deletions

View File

@@ -236,8 +236,8 @@ void main() {
});
});
group('traceAction categories', () {
test('specify non-default categories', () async {
group('traceAction with timeline streams', () {
test('specify non-default timeline streams', () async {
bool actionCalled = false;
bool startTracingCalled = false;
bool stopTracingCalled = false;
@@ -267,10 +267,10 @@ void main() {
Timeline timeline = await driver.traceAction(() {
actionCalled = true;
},
categories: const <TracingCategory>[
TracingCategory.dart,
TracingCategory.gc,
TracingCategory.compiler
streams: const <TimelineStream>[
TimelineStream.dart,
TimelineStream.gc,
TimelineStream.compiler
]);
expect(actionCalled, isTrue);