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 class AbstractMapUriTest extends AbstractAnalysisServerIntegrationTest { | 18 abstract class AbstractMapUriTest extends AbstractAnalysisServerIntegrationTest
{ |
19 test_mapUri() async { | 19 test_mapUri() async { |
20 String pathname = sourcePath('lib/main.dart'); | 20 String pathname = sourcePath('lib/main.dart'); |
21 writeFile(pathname, '// dummy'); | 21 writeFile(pathname, '// dummy'); |
22 writeFile(sourcePath('.packages'), 'foo:lib/'); | 22 writeFile(sourcePath('.packages'), 'foo:lib/'); |
23 standardAnalysisSetup(); | 23 standardAnalysisSetup(); |
24 | 24 |
25 String contextId = | 25 String contextId = |
26 (await sendExecutionCreateContext(sourceDirectory.path))?.id; | 26 (await sendExecutionCreateContext(sourceDirectory.path))?.id; |
27 | 27 |
28 { | 28 { |
(...skipping 11 matching lines...) Expand all Loading... |
40 } | 40 } |
41 | 41 |
42 @reflectiveTest | 42 @reflectiveTest |
43 class MapUriTest extends AbstractMapUriTest {} | 43 class MapUriTest extends AbstractMapUriTest {} |
44 | 44 |
45 @reflectiveTest | 45 @reflectiveTest |
46 class MapUriTest_Driver extends AbstractMapUriTest { | 46 class MapUriTest_Driver extends AbstractMapUriTest { |
47 @override | 47 @override |
48 bool get enableNewAnalysisDriver => true; | 48 bool get enableNewAnalysisDriver => true; |
49 } | 49 } |
OLD | NEW |