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

Side by Side Diff: pkg/analysis_server/test/src/plugin/result_converter_test.dart

Issue 2690133002: Fix a test that was incorrectly fixed (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analysis_server/plugin/protocol/protocol.dart' as server; 5 import 'package:analysis_server/plugin/protocol/protocol.dart' as server;
6 import 'package:analysis_server/src/plugin/result_converter.dart'; 6 import 'package:analysis_server/src/plugin/result_converter.dart';
7 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server; 7 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server;
8 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 8 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
9 import 'package:test/test.dart'; 9 import 'package:test/test.dart';
10 import 'package:test_reflective_loader/test_reflective_loader.dart'; 10 import 'package:test_reflective_loader/test_reflective_loader.dart';
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 plugin.RefactoringKind.CONVERT_GETTER_TO_METHOD: 311 plugin.RefactoringKind.CONVERT_GETTER_TO_METHOD:
312 server.RefactoringKind.CONVERT_GETTER_TO_METHOD, 312 server.RefactoringKind.CONVERT_GETTER_TO_METHOD,
313 plugin.RefactoringKind.CONVERT_METHOD_TO_GETTER: 313 plugin.RefactoringKind.CONVERT_METHOD_TO_GETTER:
314 server.RefactoringKind.CONVERT_METHOD_TO_GETTER, 314 server.RefactoringKind.CONVERT_METHOD_TO_GETTER,
315 plugin.RefactoringKind.EXTRACT_LOCAL_VARIABLE: 315 plugin.RefactoringKind.EXTRACT_LOCAL_VARIABLE:
316 server.RefactoringKind.EXTRACT_LOCAL_VARIABLE, 316 server.RefactoringKind.EXTRACT_LOCAL_VARIABLE,
317 plugin.RefactoringKind.EXTRACT_METHOD: 317 plugin.RefactoringKind.EXTRACT_METHOD:
318 server.RefactoringKind.EXTRACT_METHOD, 318 server.RefactoringKind.EXTRACT_METHOD,
319 plugin.RefactoringKind.INLINE_LOCAL_VARIABLE: 319 plugin.RefactoringKind.INLINE_LOCAL_VARIABLE:
320 server.RefactoringKind.INLINE_LOCAL_VARIABLE, 320 server.RefactoringKind.INLINE_LOCAL_VARIABLE,
321 plugin.RefactoringKind.INLINE_METHOD:
322 server.RefactoringKind.INLINE_METHOD,
321 plugin.RefactoringKind.MOVE_FILE: server.RefactoringKind.MOVE_FILE, 323 plugin.RefactoringKind.MOVE_FILE: server.RefactoringKind.MOVE_FILE,
322 plugin.RefactoringKind.RENAME: server.RefactoringKind.RENAME, 324 plugin.RefactoringKind.RENAME: server.RefactoringKind.RENAME,
323 plugin.RefactoringKind.SORT_MEMBERS: server.RefactoringKind.SORT_MEMBERS, 325 plugin.RefactoringKind.SORT_MEMBERS: server.RefactoringKind.SORT_MEMBERS,
324 }; 326 };
325 kindMap.forEach( 327 kindMap.forEach(
326 (plugin.RefactoringKind pluginKind, server.RefactoringKind serverKind) { 328 (plugin.RefactoringKind pluginKind, server.RefactoringKind serverKind) {
327 expect(converter.convertRefactoringKind(pluginKind), serverKind); 329 expect(converter.convertRefactoringKind(pluginKind), serverKind);
328 }); 330 });
329 } 331 }
330 332
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 new server.LinkedEditGroup( 427 new server.LinkedEditGroup(
426 <server.Position>[new server.Position('b.dart', 4)], 428 <server.Position>[new server.Position('b.dart', 4)],
427 5, 429 5,
428 <server.LinkedEditSuggestion>[ 430 <server.LinkedEditSuggestion>[
429 new server.LinkedEditSuggestion( 431 new server.LinkedEditSuggestion(
430 'v', server.LinkedEditSuggestionKind.METHOD) 432 'v', server.LinkedEditSuggestionKind.METHOD)
431 ]) 433 ])
432 ], 434 ],
433 selection: new server.Position('c.dart', 6)); 435 selection: new server.Position('c.dart', 6));
434 } 436 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698