OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:test/test.dart'; | 5 import 'package:test/test.dart'; |
6 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 6 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
7 | 7 |
8 import '../integration_tests.dart'; | 8 import '../integration_tests.dart'; |
9 | 9 |
10 main() { | 10 main() { |
11 defineReflectiveSuite(() { | 11 defineReflectiveSuite(() { |
12 defineReflectiveTests(CreateContextTest); | 12 defineReflectiveTests(CreateContextTest); |
13 }); | 13 }); |
14 } | 14 } |
15 | 15 |
16 @reflectiveTest | 16 @reflectiveTest |
17 class CreateContextTest extends AbstractAnalysisServerIntegrationTest { | 17 class CreateContextTest extends AbstractAnalysisServerIntegrationTest { |
18 test_create() async { | 18 test_create() async { |
19 standardAnalysisSetup(); | 19 standardAnalysisSetup(); |
20 String contextId = | 20 String contextId = |
21 (await sendExecutionCreateContext(sourceDirectory.path)).id; | 21 (await sendExecutionCreateContext(sourceDirectory.path)).id; |
22 expect(contextId, isNotNull); | 22 expect(contextId, isNotNull); |
23 } | 23 } |
24 | |
25 @override | |
26 bool get enableNewAnalysisDriver => true; | |
27 } | 24 } |
OLD | NEW |