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

Side by Side Diff: pkg/analyzer/test/source/sdk_ext_test.dart

Issue 2298913003: Pull in test_reflective_loader 0.0.4 and switch analyzer to it. (Closed)
Patch Set: Fixes for review comments. Created 4 years, 3 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.test.source.sdk_ext_test; 5 library analyzer.test.source.sdk_ext_test;
6 6
7 import 'package:analyzer/file_system/memory_file_system.dart'; 7 import 'package:analyzer/file_system/memory_file_system.dart';
8 import 'package:analyzer/source/sdk_ext.dart'; 8 import 'package:analyzer/source/sdk_ext.dart';
9 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
10 11
11 import '../reflective_tests.dart';
12 import '../utils.dart'; 12 import '../utils.dart';
13 13
14 main() { 14 main() {
15 initializeTestEnvironment(); 15 initializeTestEnvironment();
16 runReflectiveTests(SdkExtUriResolverTest); 16 defineReflectiveTests(SdkExtUriResolverTest);
17 } 17 }
18 18
19 @reflectiveTest 19 @reflectiveTest
20 class SdkExtUriResolverTest { 20 class SdkExtUriResolverTest {
21 MemoryResourceProvider resourceProvider; 21 MemoryResourceProvider resourceProvider;
22 22
23 void setUp() { 23 void setUp() {
24 resourceProvider = new MemoryResourceProvider(); 24 resourceProvider = new MemoryResourceProvider();
25 resourceProvider.newFolder('/empty'); 25 resourceProvider.newFolder('/empty');
26 resourceProvider.newFolder('/tmp'); 26 resourceProvider.newFolder('/tmp');
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 expect(source, isNotNull); 75 expect(source, isNotNull);
76 // Restore source's uri. 76 // Restore source's uri.
77 var restoreUri = resolver.restoreAbsolute(source); 77 var restoreUri = resolver.restoreAbsolute(source);
78 expect(restoreUri, isNotNull); 78 expect(restoreUri, isNotNull);
79 // Verify that it is 'dart:fox'. 79 // Verify that it is 'dart:fox'.
80 expect(restoreUri.toString(), equals('dart:fox')); 80 expect(restoreUri.toString(), equals('dart:fox'));
81 expect(restoreUri.scheme, equals('dart')); 81 expect(restoreUri.scheme, equals('dart'));
82 expect(restoreUri.path, equals('fox')); 82 expect(restoreUri.path, equals('fox'));
83 } 83 }
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698