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

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

Issue 436423002: Remove 'analysis.updateSdks' from server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | 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) 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; 5 library test.domain.analysis;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/analysis_server.dart'; 9 import 'package:analysis_server/src/analysis_server.dart';
10 import 'package:analysis_server/src/computer/error.dart'; 10 import 'package:analysis_server/src/computer/error.dart';
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 'analyzeAngular': analyzeAngular, 137 'analyzeAngular': analyzeAngular,
138 'enableDeferredLoading': enableDeferredLoading, 138 'enableDeferredLoading': enableDeferredLoading,
139 'enableEnums': false 139 'enableEnums': false
140 }); 140 });
141 var response = handler.handleRequest(request); 141 var response = handler.handleRequest(request);
142 expect(response, isResponseSuccess('0')); 142 expect(response, isResponseSuccess('0'));
143 expect(options.analyzeAngular, equals(analyzeAngular)); 143 expect(options.analyzeAngular, equals(analyzeAngular));
144 expect(options.enableDeferredLoading, equals(enableDeferredLoading)); 144 expect(options.enableDeferredLoading, equals(enableDeferredLoading));
145 }); 145 });
146 }); 146 });
147
148 test('updateSdks', () {
149 var request = new Request('0', ANALYSIS_UPDATE_SDKS);
150 request.setParameter(ADDED, ['/dart/sdk-1.3', '/dart/sdk-1.4']);
151 request.setParameter(REMOVED, ['/dart/sdk-1.2']);
152 request.setParameter(DEFAULT, '/dart/sdk-1.4');
153 var response = handler.handleRequest(request);
154 // TODO(scheglov) implement
155 expect(response, isNull);
156 });
157 }); 147 });
158 } 148 }
159 149
160 150
161 testNotificationErrors() { 151 testNotificationErrors() {
162 AnalysisTestHelper helper; 152 AnalysisTestHelper helper;
163 153
164 setUp(() { 154 setUp(() {
165 helper = new AnalysisTestHelper(); 155 helper = new AnalysisTestHelper();
166 }); 156 });
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 return waitForServerOperationsPerformed(server); 605 return waitForServerOperationsPerformed(server);
616 } 606 }
617 607
618 static String _getCodeString(code) { 608 static String _getCodeString(code) {
619 if (code is List<String>) { 609 if (code is List<String>) {
620 code = code.join('\n'); 610 code = code.join('\n');
621 } 611 }
622 return code as String; 612 return code as String;
623 } 613 }
624 } 614 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698