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.cancelable_future; | 5 library analyzer.test.cancelable_future_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analyzer/src/cancelable_future.dart'; | 9 import 'package:analyzer/src/cancelable_future.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
11 import 'package:watcher/src/utils.dart'; | 11 import 'package:watcher/src/utils.dart'; |
12 | 12 |
13 import 'reflective_tests.dart'; | 13 import 'reflective_tests.dart'; |
14 import 'utils.dart'; | 14 import 'utils.dart'; |
15 | 15 |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 | 402 |
403 Future test_value() { | 403 Future test_value() { |
404 Object obj = new Object(); | 404 Object obj = new Object(); |
405 return new CancelableFuture.value(obj).then((result) { | 405 return new CancelableFuture.value(obj).then((result) { |
406 expect(result, same(obj)); | 406 expect(result, same(obj)); |
407 }, onError: (error) { | 407 }, onError: (error) { |
408 fail('Expected successful completion'); | 408 fail('Expected successful completion'); |
409 }); | 409 }); |
410 } | 410 } |
411 } | 411 } |
OLD | NEW |