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

Side by Side Diff: pkg/analysis_server/test/domain_execution_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) 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.domain.execution; 5 library test.domain.execution;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart'; 9 import 'package:analysis_server/plugin/protocol/protocol.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 @override 281 @override
282 void setUp() { 282 void setUp() {
283 super.setUp(); 283 super.setUp();
284 createProject(); 284 createProject();
285 handler = new ExecutionDomainHandler(server); 285 handler = new ExecutionDomainHandler(server);
286 _createExecutionContext(testFile); 286 _createExecutionContext(testFile);
287 } 287 }
288 288
289 @override 289 @override
290 void tearDown() { 290 void tearDown() {
291 _disposeExecutionContext();
291 super.tearDown(); 292 super.tearDown();
292 _disposeExecutionContext();
293 } 293 }
294 294
295 void test_mapUri_file() { 295 void test_mapUri_file() {
296 String path = '/a/b.dart'; 296 String path = '/a/b.dart';
297 resourceProvider.newFile(path, ''); 297 resourceProvider.newFile(path, '');
298 // map the file 298 // map the file
299 ExecutionMapUriResult result = _mapUri(file: path); 299 ExecutionMapUriResult result = _mapUri(file: path);
300 expect(result.file, isNull); 300 expect(result.file, isNull);
301 expect(result.uri, 'file:///a/b.dart'); 301 expect(result.uri, 'file:///a/b.dart');
302 } 302 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 * A [Source] that knows it's [fullName]. 349 * A [Source] that knows it's [fullName].
350 */ 350 */
351 class TestSource implements Source { 351 class TestSource implements Source {
352 String fullName; 352 String fullName;
353 353
354 TestSource(this.fullName); 354 TestSource(this.fullName);
355 355
356 @override 356 @override
357 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 357 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
358 } 358 }
OLDNEW
« DEPS ('K') | « pkg/analysis_server/pubspec.yaml ('k') | pkg/analyzer/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698