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

Side by Side Diff: pkg/analysis_server/test/integration/analysis/package_root_test.dart

Issue 2564863003: Get all integration tests running with the new driver (Closed)
Patch Set: Created 4 years 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.integration.analysis.packageRoot;
6
7 import 'package:analysis_server/plugin/protocol/protocol.dart'; 5 import 'package:analysis_server/plugin/protocol/protocol.dart';
8 import 'package:path/path.dart' as path; 6 import 'package:path/path.dart' as path;
9 import 'package:test/test.dart'; 7 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 8 import 'package:test_reflective_loader/test_reflective_loader.dart';
11 9
12 import '../integration_tests.dart'; 10 import '../integration_tests.dart';
13 11
14 main() { 12 main() {
15 defineReflectiveSuite(() { 13 defineReflectiveSuite(() {
16 defineReflectiveTests(Test); 14 defineReflectiveTests(SetAnalysisRootsTest);
15 defineReflectiveTests(SetAnalysisRootsTest_Driver);
17 }); 16 });
18 } 17 }
19 18
20 @reflectiveTest 19 class AbstractSetAnalysisRootsTest
21 class Test extends AbstractAnalysisServerIntegrationTest { 20 extends AbstractAnalysisServerIntegrationTest {
22 test_package_root() { 21 test_package_root() {
23 String projPath = sourcePath('project'); 22 String projPath = sourcePath('project');
24 String mainPath = path.join(projPath, 'main.dart'); 23 String mainPath = path.join(projPath, 'main.dart');
25 String packagesPath = sourcePath('packages'); 24 String packagesPath = sourcePath('packages');
26 String fooBarPath = path.join(packagesPath, 'foo', 'bar.dart'); 25 String fooBarPath = path.join(packagesPath, 'foo', 'bar.dart');
27 String mainText = """ 26 String mainText = """
28 library main; 27 library main;
29 28
30 import 'package:foo/bar.dart' 29 import 'package:foo/bar.dart'
31 30
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 navigationTargets[navigationTargetIndex]; 69 navigationTargets[navigationTargetIndex];
71 String navigationFile = 70 String navigationFile =
72 navigationTargetFiles[navigationTarget.fileIndex]; 71 navigationTargetFiles[navigationTarget.fileIndex];
73 expect(navigationFile, equals(normalizedFooBarPath)); 72 expect(navigationFile, equals(normalizedFooBarPath));
74 } 73 }
75 } 74 }
76 expect(found, isTrue); 75 expect(found, isTrue);
77 }); 76 });
78 } 77 }
79 } 78 }
79
80 @reflectiveTest
81 class SetAnalysisRootsTest extends AbstractSetAnalysisRootsTest {}
82
83 @reflectiveTest
84 class SetAnalysisRootsTest_Driver extends AbstractSetAnalysisRootsTest {
85 @override
86 bool get enableNewAnalysisDriver => true;
87
88 @failingTest
89 test_package_root() {
90 // NoSuchMethodError: The getter 'iterator' was called on null.
91 return super.test_package_root();
92 }
93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698