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

Unified Diff: pkg/analyzer/test/source/embedder_test.dart

Issue 2208503004: Move embedder locator and convert context builder to use the new API (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/source/embedder_test.dart
diff --git a/pkg/analyzer/test/source/embedder_test.dart b/pkg/analyzer/test/source/embedder_test.dart
index c16e6f9765ad5cee2d7cf3d93f38cda4a49a2f34..ea20cd728db736b7a348b60b2a744a08535b3906 100644
--- a/pkg/analyzer/test/source/embedder_test.dart
+++ b/pkg/analyzer/test/source/embedder_test.dart
@@ -22,7 +22,6 @@ main() {
runReflectiveTests(DartUriResolverTest);
runReflectiveTests(EmbedderSdkTest);
runReflectiveTests(EmbedderUriResolverTest);
- runReflectiveTests(EmbedderYamlLocatorTest);
}
@reflectiveTest
@@ -39,6 +38,7 @@ class DartUriResolverTest extends EmbedderRelatedTest {
expect(source, isNotNull, reason: dartUri);
expect(source.fullName, posixToOSPath(posixPath));
}
+
// Check that they map to the correct paths.
expectResolved('dart:core', '/tmp/core.dart');
expectResolved('dart:fox', '/tmp/slippy.dart');
@@ -205,26 +205,3 @@ class EmbedderUriResolverTest extends EmbedderRelatedTest {
expectRestore('dart:deep/deep/file.dart');
}
}
-
-@reflectiveTest
-class EmbedderYamlLocatorTest extends EmbedderRelatedTest {
- void test_empty() {
- EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource('/empty')]
- });
- expect(locator.embedderYamls, hasLength(0));
- }
-
- void test_invalid() {
- EmbedderYamlLocator locator = new EmbedderYamlLocator(null);
- locator.addEmbedderYaml(null, r'''{{{,{{}}},}}''');
- expect(locator.embedderYamls, hasLength(0));
- }
-
- void test_valid() {
- EmbedderYamlLocator locator = new EmbedderYamlLocator({
- 'fox': [pathTranslator.getResource('/tmp')]
- });
- expect(locator.embedderYamls, hasLength(1));
- }
-}
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698