OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:analysis_server/plugin/protocol/protocol.dart'; | 5 import 'package:analysis_server/plugin/protocol/protocol.dart'; |
6 import 'package:analysis_server/src/plugin/result_merger.dart'; | 6 import 'package:analysis_server/src/plugin/result_merger.dart'; |
7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; | 7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; |
8 import 'package:test/test.dart'; | 8 import 'package:test/test.dart'; |
9 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 9 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
10 | 10 |
11 main() { | 11 main() { |
12 /* | |
13 import 'result_merger_test.dart' as result_merger_test; | |
14 result_merger_test.main(); | |
15 */ | |
16 defineReflectiveSuite(() { | 12 defineReflectiveSuite(() { |
17 defineReflectiveTests(ResultMergerTest); | 13 defineReflectiveTests(ResultMergerTest); |
18 }); | 14 }); |
19 } | 15 } |
20 | 16 |
21 @reflectiveTest | 17 @reflectiveTest |
22 class ResultMergerTest { | 18 class ResultMergerTest { |
23 // | 19 // |
24 // The tests in this class should always perform the merge operation twice | 20 // The tests in this class should always perform the merge operation twice |
25 // using the same input values in order to ensure that the input values are | 21 // using the same input values in order to ensure that the input values are |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 } | 730 } |
735 | 731 |
736 void test_overlaps_true_onLeft() { | 732 void test_overlaps_true_onLeft() { |
737 expect(merger.overlaps(1, 5, 3, 7), isTrue); | 733 expect(merger.overlaps(1, 5, 3, 7), isTrue); |
738 } | 734 } |
739 | 735 |
740 void test_overlaps_true_onRight() { | 736 void test_overlaps_true_onRight() { |
741 expect(merger.overlaps(3, 7, 1, 5), isTrue); | 737 expect(merger.overlaps(3, 7, 1, 5), isTrue); |
742 } | 738 } |
743 } | 739 } |
OLD | NEW |