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

Side by Side Diff: pkg/analysis_server/test/integration/execution/map_uri_test.dart

Issue 2691763002: Add integration tests for the execution domain. (Closed)
Patch Set: call -> request in dartdocs Created 3 years, 10 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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698