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

Side by Side Diff: pkg/analysis_server/test/integration/edit/list_postfix_completion_templates_test.dart

Issue 2960073002: Generate constants in server as we do in plugin (Closed)
Patch Set: improve names 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 unified diff | Download patch
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/protocol/protocol_generated.dart'; 5 import 'package:analysis_server/protocol/protocol_generated.dart';
6 import 'package:analyzer_plugin/protocol/protocol_common.dart';
7 import 'package:test/test.dart'; 6 import 'package:test/test.dart';
8 import 'package:test_reflective_loader/test_reflective_loader.dart'; 7 import 'package:test_reflective_loader/test_reflective_loader.dart';
9 8
10 import '../support/integration_tests.dart'; 9 import '../support/integration_tests.dart';
11 10
12 main() { 11 main() {
13 defineReflectiveSuite(() { 12 defineReflectiveSuite(() {
14 defineReflectiveTests(ListPostfixCompletionTemplatesTest); 13 defineReflectiveTests(ListPostfixCompletionTemplatesTest);
15 }); 14 });
16 } 15 }
(...skipping 16 matching lines...) Expand all
33 await analysisFinished; 32 await analysisFinished;
34 33
35 // expect a postfix template list result 34 // expect a postfix template list result
36 EditListPostfixCompletionTemplatesResult result = 35 EditListPostfixCompletionTemplatesResult result =
37 await sendEditListPostfixCompletionTemplates(); 36 await sendEditListPostfixCompletionTemplates();
38 expect(result.templates, isNotNull); 37 expect(result.templates, isNotNull);
39 expect(result.templates.length, greaterThan(15)); 38 expect(result.templates.length, greaterThan(15));
40 expect(result.templates[0].runtimeType, PostfixTemplateDescriptor); 39 expect(result.templates[0].runtimeType, PostfixTemplateDescriptor);
41 } 40 }
42 } 41 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698