| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analyzer.test.src.task.html_work_manager_test; | 5 library analyzer.test.src.task.html_work_manager_test; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart' show AnalysisError; | 7 import 'package:analyzer/error/error.dart' show AnalysisError; |
| 8 import 'package:analyzer/exception/exception.dart'; | 8 import 'package:analyzer/exception/exception.dart'; |
| 9 import 'package:analyzer/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
| 10 import 'package:analyzer/src/error/codes.dart' show HtmlErrorCode; | 10 import 'package:analyzer/src/error/codes.dart' show HtmlErrorCode; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import 'package:analyzer/src/task/html_work_manager.dart'; | 21 import 'package:analyzer/src/task/html_work_manager.dart'; |
| 22 import 'package:analyzer/task/dart.dart'; | 22 import 'package:analyzer/task/dart.dart'; |
| 23 import 'package:analyzer/task/general.dart'; | 23 import 'package:analyzer/task/general.dart'; |
| 24 import 'package:analyzer/task/html.dart'; | 24 import 'package:analyzer/task/html.dart'; |
| 25 import 'package:analyzer/task/model.dart'; | 25 import 'package:analyzer/task/model.dart'; |
| 26 import 'package:test/test.dart'; | 26 import 'package:test/test.dart'; |
| 27 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 27 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
| 28 import 'package:typed_mock/typed_mock.dart'; | 28 import 'package:typed_mock/typed_mock.dart'; |
| 29 | 29 |
| 30 import '../../generated/test_support.dart'; | 30 import '../../generated/test_support.dart'; |
| 31 import '../../utils.dart'; | |
| 32 | 31 |
| 33 main() { | 32 main() { |
| 34 initializeTestEnvironment(); | |
| 35 defineReflectiveSuite(() { | 33 defineReflectiveSuite(() { |
| 36 defineReflectiveTests(HtmlWorkManagerTest); | 34 defineReflectiveTests(HtmlWorkManagerTest); |
| 37 }); | 35 }); |
| 38 } | 36 } |
| 39 | 37 |
| 40 @reflectiveTest | 38 @reflectiveTest |
| 41 class HtmlWorkManagerTest { | 39 class HtmlWorkManagerTest { |
| 42 InternalAnalysisContext context = new _InternalAnalysisContextMock(); | 40 InternalAnalysisContext context = new _InternalAnalysisContextMock(); |
| 43 AnalysisCache cache; | 41 AnalysisCache cache; |
| 44 HtmlWorkManager manager; | 42 HtmlWorkManager manager; |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 return new AnalysisErrorInfoImpl( | 340 return new AnalysisErrorInfoImpl( |
| 343 errors, getCacheEntry(source).getValue(LINE_INFO)); | 341 errors, getCacheEntry(source).getValue(LINE_INFO)); |
| 344 } | 342 } |
| 345 | 343 |
| 346 @override | 344 @override |
| 347 ChangeNoticeImpl getNotice(Source source) { | 345 ChangeNoticeImpl getNotice(Source source) { |
| 348 return _pendingNotices.putIfAbsent( | 346 return _pendingNotices.putIfAbsent( |
| 349 source, () => new ChangeNoticeImpl(source)); | 347 source, () => new ChangeNoticeImpl(source)); |
| 350 } | 348 } |
| 351 } | 349 } |
| OLD | NEW |