mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

Part of https://github.com/flutter/flutter/issues/139249 This adds dart fix support plus fixes for APIs that are currently deprecated in the flutter_driver package.
21 lines
723 B
Plaintext
21 lines
723 B
Plaintext
// Copyright 2014 The Flutter Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
import 'package:flutter_driver/flutter_driver.dart';
|
|
|
|
void main() async {
|
|
// Changes made in https://github.com/flutter/flutter/pull/82939
|
|
final FlutterDriver driver = FlutterDriver();
|
|
await driver.setSemantics(true);
|
|
|
|
// Changes made in https://github.com/flutter/flutter/pull/79310
|
|
final Timeline timeline = Timeline.fromJson({});
|
|
TimelineSummary.summarize(timeline).writeTimelineToFile('traceName');
|
|
TimelineSummary.summarize(timeline).writeTimelineToFile(
|
|
'traceName',
|
|
destinationDirectory: 'destination',
|
|
pretty: false,
|
|
);
|
|
}
|