| OLD | NEW |
| 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.context.directory.manager; | 5 library test.context.directory.manager; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/context_manager.dart'; | 9 import 'package:analysis_server/src/context_manager.dart'; |
| 10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; | 10 import 'package:analysis_server/src/utilities/null_string_sink.dart'; |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 // Tried calling: apiSignature | 1735 // Tried calling: apiSignature |
| 1736 // dart:core Object
.noSuchMethod | 1736 // dart:core Object
.noSuchMethod |
| 1737 // package:analyzer/src/dart/analysis/driver.dart 248:20 Analys
isDriver.AnalysisDriver | 1737 // package:analyzer/src/dart/analysis/driver.dart 248:20 Analys
isDriver.AnalysisDriver |
| 1738 // test/context_manager_test.dart 2698:25 TestCo
ntextManagerCallbacks.addAnalysisDriver | 1738 // test/context_manager_test.dart 2698:25 TestCo
ntextManagerCallbacks.addAnalysisDriver |
| 1739 // package:analysis_server/src/context_manager.dart 1186:39 Contex
tManagerImpl._createContext | 1739 // package:analysis_server/src/context_manager.dart 1186:39 Contex
tManagerImpl._createContext |
| 1740 // package:analysis_server/src/context_manager.dart 1247:16 Contex
tManagerImpl._createContexts | 1740 // package:analysis_server/src/context_manager.dart 1247:16 Contex
tManagerImpl._createContexts |
| 1741 // package:analysis_server/src/context_manager.dart 886:9 Contex
tManagerImpl.setRoots | 1741 // package:analysis_server/src/context_manager.dart 886:9 Contex
tManagerImpl.setRoots |
| 1742 // test/context_manager_test.dart 154:13 Abstra
ctContextManagerTest.test_embedder_packagespec.<async> | 1742 // test/context_manager_test.dart 154:13 Abstra
ctContextManagerTest.test_embedder_packagespec.<async> |
| 1743 return super.test_embedder_packagespec(); | 1743 return super.test_embedder_packagespec(); |
| 1744 } | 1744 } |
| 1745 | |
| 1746 @failingTest | |
| 1747 void test_setRoots_addPackageRoot() { | |
| 1748 // Bad state: Should not be used with the new analysis driver | |
| 1749 // package:analysis_server/src/context_manager.dart 561:7 Contex
tManagerImpl.folderMap | |
| 1750 // package:analysis_server/src/context_manager.dart 1709:31 Contex
tManagerImpl._updateContextPackageUriResolver | |
| 1751 // package:analysis_server/src/context_manager.dart 1668:5 Contex
tManagerImpl._recomputeFolderDisposition | |
| 1752 // package:analysis_server/src/context_manager.dart 1420:7 Contex
tManagerImpl._handleWatchEvent | |
| 1753 return super.test_setRoots_addPackageRoot(); | |
| 1754 } | |
| 1755 | |
| 1756 @failingTest | |
| 1757 void test_setRoots_changePackageRoot() { | |
| 1758 // Bad state: Should not be used with the new analysis driver | |
| 1759 // package:analysis_server/src/context_manager.dart 561:7 Contex
tManagerImpl.folderMap | |
| 1760 // package:analysis_server/src/context_manager.dart 1709:31 Contex
tManagerImpl._updateContextPackageUriResolver | |
| 1761 // package:analysis_server/src/context_manager.dart 1668:5 Contex
tManagerImpl._recomputeFolderDisposition | |
| 1762 // package:analysis_server/src/context_manager.dart 1420:7 Contex
tManagerImpl._handleWatchEvent | |
| 1763 return super.test_setRoots_changePackageRoot(); | |
| 1764 } | |
| 1765 | |
| 1766 @failingTest | |
| 1767 void test_setRoots_removePackageRoot() { | |
| 1768 // Bad state: Should not be used with the new analysis driver | |
| 1769 // package:analysis_server/src/context_manager.dart 561:7 Contex
tManagerImpl.folderMap | |
| 1770 // package:analysis_server/src/context_manager.dart 1709:31 Contex
tManagerImpl._updateContextPackageUriResolver | |
| 1771 // package:analysis_server/src/context_manager.dart 1668:5 Contex
tManagerImpl._recomputeFolderDisposition | |
| 1772 // package:analysis_server/src/context_manager.dart 1420:7 Contex
tManagerImpl._handleWatchEvent | |
| 1773 return super.test_setRoots_removePackageRoot(); | |
| 1774 } | |
| 1775 | |
| 1776 @failingTest | |
| 1777 test_watch_modifyPackageMapDependency_fail() async { | |
| 1778 // Bad state: Should not be used with the new analysis driver | |
| 1779 // package:analysis_server/src/context_manager.dart 561:7 Contex
tManagerImpl.folderMap | |
| 1780 // package:analysis_server/src/context_manager.dart 1709:31 Contex
tManagerImpl._updateContextPackageUriResolver | |
| 1781 // package:analysis_server/src/context_manager.dart 1668:5 Contex
tManagerImpl._recomputeFolderDisposition | |
| 1782 // package:analysis_server/src/context_manager.dart 1420:7 Contex
tManagerImpl._handleWatchEvent | |
| 1783 //return super.test_watch_modifyPackageMapDependency_fail(); | |
| 1784 fail('StateError thrown'); | |
| 1785 } | |
| 1786 } | 1745 } |
| 1787 | 1746 |
| 1788 abstract class ContextManagerTest { | 1747 abstract class ContextManagerTest { |
| 1789 /** | 1748 /** |
| 1790 * The name of the 'bin' directory. | 1749 * The name of the 'bin' directory. |
| 1791 */ | 1750 */ |
| 1792 static const String BIN_NAME = 'bin'; | 1751 static const String BIN_NAME = 'bin'; |
| 1793 | 1752 |
| 1794 /** | 1753 /** |
| 1795 * The name of the 'example' directory. | 1754 * The name of the 'example' directory. |
| (...skipping 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2993 class TestUriResolver extends UriResolver { | 2952 class TestUriResolver extends UriResolver { |
| 2994 Map<Uri, Source> uriMap; | 2953 Map<Uri, Source> uriMap; |
| 2995 | 2954 |
| 2996 TestUriResolver(this.uriMap); | 2955 TestUriResolver(this.uriMap); |
| 2997 | 2956 |
| 2998 @override | 2957 @override |
| 2999 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 2958 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
| 3000 return uriMap[uri]; | 2959 return uriMap[uri]; |
| 3001 } | 2960 } |
| 3002 } | 2961 } |
| OLD | NEW |