1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 14:28:51 +00:00

Add an e2e (host-independent) test demo to testing_app (#515)

This commit is contained in:
Ming Lyu (CareF)
2020-08-13 18:00:22 -04:00
committed by GitHub
parent 437d1f620b
commit 824aeb5a16
11 changed files with 371 additions and 15 deletions

View File

@@ -42,12 +42,12 @@ void main() {
final scrollingSummary = TimelineSummary.summarize(scrollingTimeline);
// Then, save the summary to disk.
// Results will be stored in the file 'build/scrolling.timeline.json'.
// Results will be stored in
// the file 'build/scrolling.timeline_summary.json'.
await scrollingSummary.writeSummaryToFile('scrolling', pretty: true);
// Write the entire timeline to disk in a json format.
// Results will be stored in
// the file 'build/scrolling.timeline_summary.json'.
// Results will be stored in the file 'build/scrolling.timeline.json'.
// This file can be opened in the Chrome browser's tracing tools
// found by navigating to chrome://tracing.
await scrollingSummary.writeTimelineToFile('scrolling', pretty: true);