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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 class ContextManagerWithNewOptionsTest extends ContextManagerWithOptionsTest { | 1854 class ContextManagerWithNewOptionsTest extends ContextManagerWithOptionsTest { |
1855 String get optionsFileName => AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE; | 1855 String get optionsFileName => AnalysisEngine.ANALYSIS_OPTIONS_YAML_FILE; |
1856 } | 1856 } |
1857 | 1857 |
1858 @reflectiveTest | 1858 @reflectiveTest |
1859 class ContextManagerWithNewOptionsTest_Driver | 1859 class ContextManagerWithNewOptionsTest_Driver |
1860 extends ContextManagerWithNewOptionsTest { | 1860 extends ContextManagerWithNewOptionsTest { |
1861 bool get enableAnalysisDriver => true; | 1861 bool get enableAnalysisDriver => true; |
1862 | 1862 |
1863 @failingTest | 1863 @failingTest |
1864 test_analysis_options_file_delete() async { | |
1865 // It appears that this fails because we are not correctly updating the | |
1866 // analysis options in the driver when the file is removed. | |
1867 return super.test_analysis_options_file_delete(); | |
1868 } | |
1869 | |
1870 @failingTest | |
1871 test_analysis_options_file_delete_with_embedder() async { | 1864 test_analysis_options_file_delete_with_embedder() async { |
1872 // This fails because the ContextBuilder doesn't pick up the strongMode | 1865 // This fails because the ContextBuilder doesn't pick up the strongMode |
1873 // flag from the embedder.yaml file. | 1866 // flag from the embedder.yaml file. |
1874 return super.test_analysis_options_file_delete_with_embedder(); | 1867 return super.test_analysis_options_file_delete_with_embedder(); |
1875 } | 1868 } |
1876 | 1869 |
1877 @failingTest | 1870 @failingTest |
1878 test_embedder_options() async { | 1871 test_embedder_options() async { |
1879 // This fails because the ContextBuilder doesn't pick up the strongMode | 1872 // This fails because the ContextBuilder doesn't pick up the strongMode |
1880 // flag from the embedder.yaml file. | 1873 // flag from the embedder.yaml file. |
(...skipping 21 matching lines...) Expand all Loading... |
1902 class ContextManagerWithOldOptionsTest extends ContextManagerWithOptionsTest { | 1895 class ContextManagerWithOldOptionsTest extends ContextManagerWithOptionsTest { |
1903 String get optionsFileName => AnalysisEngine.ANALYSIS_OPTIONS_FILE; | 1896 String get optionsFileName => AnalysisEngine.ANALYSIS_OPTIONS_FILE; |
1904 } | 1897 } |
1905 | 1898 |
1906 @reflectiveTest | 1899 @reflectiveTest |
1907 class ContextManagerWithOldOptionsTest_Driver | 1900 class ContextManagerWithOldOptionsTest_Driver |
1908 extends ContextManagerWithOldOptionsTest { | 1901 extends ContextManagerWithOldOptionsTest { |
1909 bool get enableAnalysisDriver => true; | 1902 bool get enableAnalysisDriver => true; |
1910 | 1903 |
1911 @failingTest | 1904 @failingTest |
1912 test_analysis_options_file_delete() async { | |
1913 // It appears that this fails because we are not correctly updating the | |
1914 // analysis options in the driver when the file is removed. | |
1915 return super.test_analysis_options_file_delete(); | |
1916 } | |
1917 | |
1918 @failingTest | |
1919 test_analysis_options_file_delete_with_embedder() async { | 1905 test_analysis_options_file_delete_with_embedder() async { |
1920 // This fails because the ContextBuilder doesn't pick up the strongMode | 1906 // This fails because the ContextBuilder doesn't pick up the strongMode |
1921 // flag from the embedder.yaml file. | 1907 // flag from the embedder.yaml file. |
1922 return super.test_analysis_options_file_delete_with_embedder(); | 1908 return super.test_analysis_options_file_delete_with_embedder(); |
1923 } | 1909 } |
1924 | 1910 |
1925 @failingTest | 1911 @failingTest |
1926 test_embedder_options() async { | 1912 test_embedder_options() async { |
1927 // This fails because the ContextBuilder doesn't pick up the strongMode | 1913 // This fails because the ContextBuilder doesn't pick up the strongMode |
1928 // flag from the embedder.yaml file. | 1914 // flag from the embedder.yaml file. |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2825 class TestUriResolver extends UriResolver { | 2811 class TestUriResolver extends UriResolver { |
2826 Map<Uri, Source> uriMap; | 2812 Map<Uri, Source> uriMap; |
2827 | 2813 |
2828 TestUriResolver(this.uriMap); | 2814 TestUriResolver(this.uriMap); |
2829 | 2815 |
2830 @override | 2816 @override |
2831 Source resolveAbsolute(Uri uri, [Uri actualUri]) { | 2817 Source resolveAbsolute(Uri uri, [Uri actualUri]) { |
2832 return uriMap[uri]; | 2818 return uriMap[uri]; |
2833 } | 2819 } |
2834 } | 2820 } |
OLD | NEW |