// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. @Timeout(Duration(minutes: 2)) library; import 'package:test/test.dart'; import 'package:test_common/test_sdk_configuration.dart'; import 'fixtures/context.dart'; import 'fixtures/project.dart'; void main() { final provider = TestSdkConfigurationProvider(); tearDownAll(provider.dispose); final context = TestContext(TestProject.test, provider); setUpAll(() async { await context.setUp(); }); tearDownAll(() async { await context.tearDown(); }); test('can take screenshots', () async { final response = await context.debugConnection.vmService .callServiceExtension('ext.dwds.screenshot'); expect(response.json!['data'], isNotNull); }); }