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

Side by Side Diff: pkg/analysis_server/test/services/completion/keyword_contributor_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
OLDNEW
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.services.completion.dart.keyword; 5 library test.services.completion.dart.keyword;
6 6
7 import 'package:analysis_server/src/protocol.dart'; 7 import 'package:analysis_server/src/protocol.dart';
8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart'; 8 import 'package:analysis_server/src/services/completion/dart_completion_manager. dart';
9 import 'package:analysis_server/src/services/completion/keyword_contributor.dart '; 9 import 'package:analysis_server/src/services/completion/keyword_contributor.dart ';
10 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
11 import 'package:test_reflective_loader/test_reflective_loader.dart'; 11 import 'package:test_reflective_loader/test_reflective_loader.dart';
12 import 'package:unittest/unittest.dart'; 12 import 'package:unittest/unittest.dart';
13 13
14 import '../../utils.dart';
14 import 'completion_test_util.dart'; 15 import 'completion_test_util.dart';
15 16
16 main() { 17 main() {
17 groupSep = ' | '; 18 initializeTestEnvironment();
18 defineReflectiveTests(KeywordContributorTest); 19 defineReflectiveTests(KeywordContributorTest);
19 } 20 }
20 21
21 @reflectiveTest 22 @reflectiveTest
22 class KeywordContributorTest extends AbstractCompletionTest { 23 class KeywordContributorTest extends AbstractCompletionTest {
23 static const List<Keyword> CLASS_BODY_KEYWORDS = const [ 24 static const List<Keyword> CLASS_BODY_KEYWORDS = const [
24 Keyword.CONST, 25 Keyword.CONST,
25 Keyword.DYNAMIC, 26 Keyword.DYNAMIC,
26 Keyword.FACTORY, 27 Keyword.FACTORY,
27 Keyword.FINAL, 28 Keyword.FINAL,
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 (c) => msg.writeln(' $c, ${other.contains(c) ? '' : '<<<<<<<<<<<'}')); 1176 (c) => msg.writeln(' $c, ${other.contains(c) ? '' : '<<<<<<<<<<<'}'));
1176 } 1177 }
1177 1178
1178 bool _equalSets(Iterable<String> iter1, Iterable<String> iter2) { 1179 bool _equalSets(Iterable<String> iter1, Iterable<String> iter2) {
1179 if (iter1.length != iter2.length) return false; 1180 if (iter1.length != iter2.length) return false;
1180 if (iter1.any((c) => !iter2.contains(c))) return false; 1181 if (iter1.any((c) => !iter2.contains(c))) return false;
1181 if (iter2.any((c) => !iter1.contains(c))) return false; 1182 if (iter2.any((c) => !iter1.contains(c))) return false;
1182 return true; 1183 return true;
1183 } 1184 }
1184 } 1185 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698