Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: packages/analyzer/test/src/task/html_work_manager_test.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: packages/analyzer/test/src/task/html_work_manager_test.dart
diff --git a/packages/analyzer/test/src/task/html_work_manager_test.dart b/packages/analyzer/test/src/task/html_work_manager_test.dart
index 0785f97c324973d54452be67ee01cfe9e14f4119..55698a09422da95d42c579a640620fbac27991f4 100644
--- a/packages/analyzer/test/src/task/html_work_manager_test.dart
+++ b/packages/analyzer/test/src/task/html_work_manager_test.dart
@@ -2,9 +2,12 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library test.src.task.html_work_manager_test;
+library analyzer.test.src.task.html_work_manager_test;
+import 'package:analyzer/error/error.dart' show AnalysisError;
+import 'package:analyzer/exception/exception.dart';
import 'package:analyzer/src/context/cache.dart';
+import 'package:analyzer/src/error/codes.dart' show HtmlErrorCode;
import 'package:analyzer/src/generated/engine.dart'
show
AnalysisEngine,
@@ -13,9 +16,6 @@ import 'package:analyzer/src/generated/engine.dart'
CacheState,
ChangeNoticeImpl,
InternalAnalysisContext;
-import 'package:analyzer/src/generated/error.dart'
- show AnalysisError, HtmlErrorCode;
-import 'package:analyzer/src/generated/java_engine.dart' show CaughtException;
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/task/html.dart';
import 'package:analyzer/src/task/html_work_manager.dart';
@@ -23,16 +23,16 @@ import 'package:analyzer/task/dart.dart';
import 'package:analyzer/task/general.dart';
import 'package:analyzer/task/html.dart';
import 'package:analyzer/task/model.dart';
+import 'package:test_reflective_loader/test_reflective_loader.dart';
import 'package:typed_mock/typed_mock.dart';
import 'package:unittest/unittest.dart';
import '../../generated/test_support.dart';
-import '../../reflective_tests.dart';
import '../../utils.dart';
main() {
initializeTestEnvironment();
- runReflectiveTests(HtmlWorkManagerTest);
+ defineReflectiveTests(HtmlWorkManagerTest);
}
@reflectiveTest
@@ -110,8 +110,8 @@ class HtmlWorkManagerTest {
}
void test_applyPriorityTargets() {
- when(context.shouldErrorsBeAnalyzed(source2, null)).thenReturn(true);
- when(context.shouldErrorsBeAnalyzed(source3, null)).thenReturn(true);
+ when(context.shouldErrorsBeAnalyzed(source2)).thenReturn(true);
+ when(context.shouldErrorsBeAnalyzed(source3)).thenReturn(true);
manager.priorityResultQueue.add(new TargetedResult(source1, HTML_ERRORS));
manager.priorityResultQueue.add(new TargetedResult(source2, HTML_ERRORS));
// -source1 +source3
@@ -346,6 +346,4 @@ class _InternalAnalysisContextMock extends TypedMock
return _pendingNotices.putIfAbsent(
source, () => new ChangeNoticeImpl(source));
}
-
- noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
}
« no previous file with comments | « packages/analyzer/test/src/task/html_test.dart ('k') | packages/analyzer/test/src/task/incremental_element_builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698