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:analysis_server/plugin/protocol/protocol.dart'; | 5 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
6 import 'package:test/test.dart'; | 6 import 'package:test/test.dart'; |
7 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 7 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
8 | 8 |
9 import '../integration_tests.dart'; | 9 import '../integration_tests.dart'; |
10 | 10 |
11 main() { | 11 main() { |
12 defineReflectiveSuite(() { | 12 defineReflectiveSuite(() { |
13 defineReflectiveTests(MapUriTest); | 13 defineReflectiveTests(MapUriTest); |
14 defineReflectiveTests(MapUriTest_Driver); | 14 defineReflectiveTests(MapUriTest_Driver); |
15 }); | 15 }); |
16 } | 16 } |
17 | 17 |
18 abstract class AbstractMapUriTest extends AbstractAnalysisServerIntegrationTest
{ | 18 abstract class AbstractMapUriTest |
| 19 extends AbstractAnalysisServerIntegrationTest { |
19 test_mapUri() async { | 20 test_mapUri() async { |
20 String pathname = sourcePath('lib/main.dart'); | 21 String pathname = sourcePath('lib/main.dart'); |
21 writeFile(pathname, '// dummy'); | 22 writeFile(pathname, '// dummy'); |
22 writeFile(sourcePath('.packages'), 'foo:lib/'); | 23 writeFile(sourcePath('.packages'), 'foo:lib/'); |
23 standardAnalysisSetup(); | 24 standardAnalysisSetup(); |
24 | 25 |
25 String contextId = | 26 String contextId = |
26 (await sendExecutionCreateContext(sourceDirectory.path))?.id; | 27 (await sendExecutionCreateContext(sourceDirectory.path))?.id; |
27 | 28 |
28 { | 29 { |
(...skipping 11 matching lines...) Expand all Loading... |
40 } | 41 } |
41 | 42 |
42 @reflectiveTest | 43 @reflectiveTest |
43 class MapUriTest extends AbstractMapUriTest {} | 44 class MapUriTest extends AbstractMapUriTest {} |
44 | 45 |
45 @reflectiveTest | 46 @reflectiveTest |
46 class MapUriTest_Driver extends AbstractMapUriTest { | 47 class MapUriTest_Driver extends AbstractMapUriTest { |
47 @override | 48 @override |
48 bool get enableNewAnalysisDriver => true; | 49 bool get enableNewAnalysisDriver => true; |
49 } | 50 } |
OLD | NEW |