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

Side by Side Diff: pkg/analyzer/test/src/task/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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/test/src/task/inputs_test.dart ('k') | pkg/analyzer/test/src/task/model_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 test.src.task.manager_test; 5 library test.src.task.manager_test;
6 6
7 import 'package:analyzer/src/generated/java_engine.dart'; 7 import 'package:analyzer/src/generated/java_engine.dart';
8 import 'package:analyzer/src/task/manager.dart'; 8 import 'package:analyzer/src/task/manager.dart';
9 import 'package:analyzer/task/model.dart'; 9 import 'package:analyzer/task/model.dart';
10 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
11 11
12 import '../../generated/test_support.dart'; 12 import '../../generated/test_support.dart';
13 import '../../reflective_tests.dart'; 13 import '../../reflective_tests.dart';
14 import '../../utils.dart';
14 15
15 main() { 16 main() {
16 groupSep = ' | '; 17 initializeTestEnvironment();
17 runReflectiveTests(TaskManagerTest); 18 runReflectiveTests(TaskManagerTest);
18 } 19 }
19 20
20 @reflectiveTest 21 @reflectiveTest
21 class TaskManagerTest extends EngineTestCase { 22 class TaskManagerTest extends EngineTestCase {
22 static final ResultDescriptor result1 = new ResultDescriptor('result1', null); 23 static final ResultDescriptor result1 = new ResultDescriptor('result1', null);
23 static final ResultDescriptor result2 = new ResultDescriptor('result2', null); 24 static final ResultDescriptor result2 = new ResultDescriptor('result2', null);
24 25
25 test_addGeneralResult() { 26 test_addGeneralResult() {
26 TaskManager manager = new TaskManager(); 27 TaskManager manager = new TaskManager();
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 test_removePriorityResult_present() { 123 test_removePriorityResult_present() {
123 TaskManager manager = new TaskManager(); 124 TaskManager manager = new TaskManager();
124 manager.addPriorityResult(result1); 125 manager.addPriorityResult(result1);
125 manager.addPriorityResult(result2); 126 manager.addPriorityResult(result2);
126 Set<ResultDescriptor> results = manager.priorityResults; 127 Set<ResultDescriptor> results = manager.priorityResults;
127 expect(results, unorderedEquals([result1, result2])); 128 expect(results, unorderedEquals([result1, result2]));
128 manager.removePriorityResult(result1); 129 manager.removePriorityResult(result1);
129 expect(results, unorderedEquals([result2])); 130 expect(results, unorderedEquals([result2]));
130 } 131 }
131 } 132 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/src/task/inputs_test.dart ('k') | pkg/analyzer/test/src/task/model_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698