blob: 34693058cf8b40754f7e1c8b46b7f6d3718f7811 [file] [log] [blame]
// Copyright (c) 2021, 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.
import 'package:vm_service/vm_service.dart';
import 'package:test/test.dart';
import 'common/test_helper.dart';
class Foo {
static Bar b = Bar();
class Bar {}
var tests = <IsolateTest>[
(VmService service, IsolateRef isolate) async {
final classes = (await service.getClassList(!)).classes!;
final fooRef = classes.firstWhere((element) => == 'Foo');
final foo = (await service.getObject(!,!)) as Class;
final field =
(await service.getObject(!, foo.fields!!)) as Field;
expect(field.staticValue!.valueAsString, '<not initialized>');
main([args = const <String>[]]) => runIsolateTests(args, tests);