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

Side by Side Diff: pkg/analysis_server/test/analysis_notification_outline_test.dart

Issue 337943002: Adjust server for API changes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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.domain.analysis.notification.outline; 5 library test.domain.analysis.notification.outline;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 9
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 10 matching lines...) Expand all
21 runReflectiveTests(AnalysisNotificationOutlineTest); 21 runReflectiveTests(AnalysisNotificationOutlineTest);
22 }); 22 });
23 } 23 }
24 24
25 25
26 @ReflectiveTestCase() 26 @ReflectiveTestCase()
27 class AnalysisNotificationOutlineTest extends AbstractAnalysisTest { 27 class AnalysisNotificationOutlineTest extends AbstractAnalysisTest {
28 _Outline outline; 28 _Outline outline;
29 29
30 void processNotification(Notification notification) { 30 void processNotification(Notification notification) {
31 if (notification.event == NOTIFICATION_OUTLINE) { 31 if (notification.event == ANALYSIS_OUTLINE) {
32 String file = notification.getParameter(FILE); 32 String file = notification.getParameter(FILE);
33 if (file == testFile) { 33 if (file == testFile) {
34 Map<String, Object> json = notification.getParameter(OUTLINE); 34 Map<String, Object> json = notification.getParameter(OUTLINE);
35 outline = new _Outline.fromJson(json); 35 outline = new _Outline.fromJson(json);
36 } 36 }
37 } 37 }
38 } 38 }
39 39
40 Future prepareOutline(then()) { 40 Future prepareOutline(then()) {
41 addAnalysisSubscription(AnalysisService.OUTLINE, testFile); 41 addAnalysisSubscription(AnalysisService.OUTLINE, testFile);
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 map[PARAMETERS], map[RETURN_TYPE]); 672 map[PARAMETERS], map[RETURN_TYPE]);
673 List<Map<String, Object>> childrenMaps = map[CHILDREN]; 673 List<Map<String, Object>> childrenMaps = map[CHILDREN];
674 if (childrenMaps != null) { 674 if (childrenMaps != null) {
675 childrenMaps.forEach((childMap) { 675 childrenMaps.forEach((childMap) {
676 outline.children.add(new _Outline.fromJson(childMap)); 676 outline.children.add(new _Outline.fromJson(childMap));
677 }); 677 });
678 } 678 }
679 return outline; 679 return outline;
680 } 680 }
681 } 681 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698