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.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 Loading... |
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 Loading... |
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 } |
OLD | NEW |