Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: pkg/analysis_server/test/abstract_single_unit.dart

Issue 2864813002: Switch the default from non-driver to driver in several tests (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.services.src.index.abstract_single_file; 5 library test.services.src.index.abstract_single_file;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8
8 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
9 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/error/error.dart'; 11 import 'package:analyzer/error/error.dart';
11 import 'package:analyzer/src/dart/ast/utilities.dart'; 12 import 'package:analyzer/src/dart/ast/utilities.dart';
12 import 'package:analyzer/src/dart/error/hint_codes.dart'; 13 import 'package:analyzer/src/dart/error/hint_codes.dart';
13 import 'package:analyzer/src/generated/java_engine.dart'; 14 import 'package:analyzer/src/generated/java_engine.dart';
14 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
15 import 'package:test/test.dart'; 16 import 'package:test/test.dart';
16 17
17 import 'abstract_context.dart'; 18 import 'abstract_context.dart';
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } else { 115 } else {
115 testUnit = await resolveLibraryUnit(testSource); 116 testUnit = await resolveLibraryUnit(testSource);
116 if (verifyNoTestUnitErrors) { 117 if (verifyNoTestUnitErrors) {
117 expect(context.getErrors(testSource).errors, isEmpty); 118 expect(context.getErrors(testSource).errors, isEmpty);
118 } 119 }
119 } 120 }
120 testUnitElement = testUnit.element; 121 testUnitElement = testUnit.element;
121 testLibraryElement = testUnitElement.library; 122 testLibraryElement = testUnitElement.library;
122 } 123 }
123 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698