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

Side by Side Diff: pkg/analysis_server/test/analysis/notification_outline_test.dart

Issue 849863002: Replace @ReflectiveTestCase() with @reflectiveTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
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.analysis.notification.outline; 5 library test.analysis.notification.outline;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/constants.dart'; 9 import 'package:analysis_server/src/constants.dart';
10 import 'package:analysis_server/src/protocol.dart'; 10 import 'package:analysis_server/src/protocol.dart';
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 import '../analysis_abstract.dart'; 13 import '../analysis_abstract.dart';
14 import '../reflective_tests.dart'; 14 import '../reflective_tests.dart';
15 15
16 16
17 main() { 17 main() {
18 runReflectiveTests(_AnalysisNotificationOutlineTest); 18 runReflectiveTests(_AnalysisNotificationOutlineTest);
19 } 19 }
20 20
21 21
22 @ReflectiveTestCase() 22 @reflectiveTest
23 class _AnalysisNotificationOutlineTest extends AbstractAnalysisTest { 23 class _AnalysisNotificationOutlineTest extends AbstractAnalysisTest {
24 Outline outline; 24 Outline outline;
25 25
26 Future prepareOutline() { 26 Future prepareOutline() {
27 addAnalysisSubscription(AnalysisService.OUTLINE, testFile); 27 addAnalysisSubscription(AnalysisService.OUTLINE, testFile);
28 return waitForTasksFinished(); 28 return waitForTasksFinished();
29 } 29 }
30 30
31 void processNotification(Notification notification) { 31 void processNotification(Notification notification) {
32 if (notification.event == ANALYSIS_OUTLINE) { 32 if (notification.event == ANALYSIS_OUTLINE) {
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 Location location = element.location; 754 Location location = element.location;
755 expect(location.offset, testCode.indexOf("propB(int v) {}")); 755 expect(location.offset, testCode.indexOf("propB(int v) {}"));
756 expect(location.length, "propB".length); 756 expect(location.length, "propB".length);
757 } 757 }
758 expect(element.parameters, "(int v)"); 758 expect(element.parameters, "(int v)");
759 expect(element.returnType, ""); 759 expect(element.returnType, "");
760 } 760 }
761 }); 761 });
762 } 762 }
763 } 763 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698