| 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.computer.error; | 5 library test.computer.error; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/computer/element.dart'; | 7 import 'package:analysis_server/src/computer/element.dart'; |
| 8 import 'package:analysis_server/src/computer/error.dart'; | 8 import 'package:analysis_server/src/computer/error.dart'; |
| 9 import 'package:analysis_services/constants.dart'; | 9 import 'package:analysis_services/constants.dart'; |
| 10 import 'package:analysis_testing/abstract_single_unit.dart'; | 10 import 'package:analysis_testing/abstract_single_unit.dart'; |
| 11 import 'package:analysis_testing/reflective_tests.dart'; | 11 import 'package:analysis_testing/reflective_tests.dart'; |
| 12 import 'package:analyzer/src/generated/element.dart' as engine; | 12 import 'package:analyzer/src/generated/element.dart' as engine; |
| 13 import 'package:analyzer/src/generated/engine.dart' as engine; | 13 import 'package:analyzer/src/generated/engine.dart' as engine; |
| 14 import 'package:analyzer/src/generated/error.dart' as engine; | 14 import 'package:analyzer/src/generated/error.dart' as engine; |
| 15 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; | 15 import 'package:analyzer/src/generated/utilities_dart.dart' as engine; |
| 16 import 'package:unittest/unittest.dart'; | 16 import 'package:unittest/unittest.dart'; |
| 17 | 17 |
| 18 | 18 |
| 19 | 19 |
| 20 main() { | 20 main() { |
| 21 groupSep = ' | '; | 21 groupSep = ' | '; |
| 22 group('AnalysisError', () { | 22 runReflectiveTests(AnalysisErrorTest); |
| 23 runReflectiveTests(AnalysisErrorTest); | |
| 24 }); | |
| 25 } | 23 } |
| 26 | 24 |
| 27 | 25 |
| 28 @ReflectiveTestCase() | 26 @ReflectiveTestCase() |
| 29 class AnalysisErrorTest extends AbstractSingleUnitTest { | 27 class AnalysisErrorTest extends AbstractSingleUnitTest { |
| 30 void test_fromEngine() { | 28 void test_fromEngine() { |
| 31 verifyNoTestUnitErrors = false; | 29 verifyNoTestUnitErrors = false; |
| 32 resolveTestUnit(''' | 30 resolveTestUnit(''' |
| 33 main() { | 31 main() { |
| 34 print(42) | 32 print(42) |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 FILE: '/test.dart', | 100 FILE: '/test.dart', |
| 103 OFFSET: 19, | 101 OFFSET: 19, |
| 104 LENGTH: 1, | 102 LENGTH: 1, |
| 105 START_LINE: 2, | 103 START_LINE: 2, |
| 106 START_COLUMN: 11 | 104 START_COLUMN: 11 |
| 107 }, | 105 }, |
| 108 MESSAGE: 'Expected to find \';\'' | 106 MESSAGE: 'Expected to find \';\'' |
| 109 }); | 107 }); |
| 110 } | 108 } |
| 111 } | 109 } |
| OLD | NEW |