blob: db9e4c4e596c1038f5d8760ed7646002227c8108 [file] [log] [blame] [edit]
// 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))
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.testWithSoundNullSafety, 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);
});
}