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

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

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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: pkg/analyzer/test/src/task/html_work_manager_test.dart
diff --git a/pkg/analyzer/test/src/task/html_work_manager_test.dart b/pkg/analyzer/test/src/task/html_work_manager_test.dart
index ad1027c9e20285cf04de6e80fc96119a0edaca0c..10fd07a24140e15f7a40a73003153c91a4b544a6 100644
--- a/pkg/analyzer/test/src/task/html_work_manager_test.dart
+++ b/pkg/analyzer/test/src/task/html_work_manager_test.dart
@@ -29,9 +29,10 @@ import 'package:unittest/unittest.dart';
import '../../generated/test_support.dart';
import '../../reflective_tests.dart';
+import '../../utils.dart';
main() {
- groupSep = ' | ';
+ initializeTestEnvironment();
runReflectiveTests(HtmlWorkManagerTest);
}
@@ -116,10 +117,12 @@ class HtmlWorkManagerTest {
manager.priorityResultQueue.add(new TargetedResult(source2, HTML_ERRORS));
// -source1 +source3
manager.applyPriorityTargets([source2, source3]);
- expect(manager.priorityResultQueue, unorderedEquals([
- new TargetedResult(source2, HTML_ERRORS),
- new TargetedResult(source3, HTML_ERRORS)
- ]));
+ expect(
+ manager.priorityResultQueue,
+ unorderedEquals([
+ new TargetedResult(source2, HTML_ERRORS),
+ new TargetedResult(source3, HTML_ERRORS)
+ ]));
// get next request
TargetedResult request = manager.getNextResult();
expect(request.target, source2);
@@ -204,19 +207,23 @@ class HtmlWorkManagerTest {
void test_getNextResult_hasPriority() {
manager.addPriorityResult(source1, HTML_ERRORS);
manager.addPriorityResult(source2, HTML_ERRORS);
- expect(manager.priorityResultQueue, unorderedEquals([
- new TargetedResult(source1, HTML_ERRORS),
- new TargetedResult(source2, HTML_ERRORS)
- ]));
+ expect(
+ manager.priorityResultQueue,
+ unorderedEquals([
+ new TargetedResult(source1, HTML_ERRORS),
+ new TargetedResult(source2, HTML_ERRORS)
+ ]));
TargetedResult request = manager.getNextResult();
expect(request.target, source1);
expect(request.result, HTML_ERRORS);
// no changes until computed
- expect(manager.priorityResultQueue, unorderedEquals([
- new TargetedResult(source1, HTML_ERRORS),
- new TargetedResult(source2, HTML_ERRORS)
- ]));
+ expect(
+ manager.priorityResultQueue,
+ unorderedEquals([
+ new TargetedResult(source1, HTML_ERRORS),
+ new TargetedResult(source2, HTML_ERRORS)
+ ]));
}
void test_getNextResult_nothingToDo() {
« no previous file with comments | « pkg/analyzer/test/src/task/html_test.dart ('k') | pkg/analyzer/test/src/task/incremental_element_builder_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698