anchor.diff:    }
   }
   
  -/// TODO(paulberry): migrate this test away from the task model.
  -/// See dartbug.com/35734.
   @reflectiveTest
  -class ErrorResolverTest extends ResolverTestCase {
  +class ErrorResolverTest extends DriverResolutionTest {
     test_breakLabelOnSwitchMember() async {
  -    Source source = addSource(r'''
  +    assertErrorsInCode(r'''
   class A {
     void m(int i) {
       switch (i) {
  
positive.code:         break l;
      }
    }
  }''');
      await computeAnalysisResult(source);
      assertErrors(source, [ResolverErrorCode.BREAK_LABEL_ON_SWITCH_MEMBER]);
      verify([source]);
    }
  
    test_continueLabelOnSwitch() async {
      Source source = addSource(r'''
  class A {
    void m(int i) {
      l: switch (i) {
  
negative.code: import 'package:analyzer/src/generated/source_io.dart';
  import 'package:analyzer/src/generated/testing/ast_test_factory.dart';
  import 'package:analyzer/src/generated/testing/element_factory.dart';
  import 'package:analyzer/src/generated/testing/test_type_provider.dart';
  import 'package:analyzer/src/source/source_resource.dart';
  import 'package:analyzer/src/test_utilities/resource_provider_mixin.dart';
  import 'package:test/test.dart';
  import 'package:test_reflective_loader/test_reflective_loader.dart';
  
  import '../src/dart/resolution/driver_resolution.dart';
  import 'analysis_context_factory.dart';
  import 'parser_test.dart';
  import 'resolver_test_case.dart';
  