// 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'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test_driver.dart'; import 'package:path/path.dart' as path; void main() { useMemoryFileSystemForTesting(); test('Writes multiple files for each timeline', () async { final String outDir = fs.systemTempDirectory.path; await writeResponseData( { 'timeline_a': {}, 'timeline_b': {}, 'screenshots': {}, }, destinationDirectory: outDir, ); expect(fs.file(path.join(outDir, 'integration_response_data_timeline_a.json')).existsSync(), true); expect(fs.file(path.join(outDir, 'integration_response_data_timeline_b.json')).existsSync(), true); expect(fs.file(path.join(outDir, 'integration_response_data_screenshots.json')).existsSync(), false); }); }