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

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

Issue 842753004: Remove remaining references to Angular and Polymer from the analysis server. (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.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/constants.dart'; 10 import 'package:analysis_server/src/constants.dart';
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }); 143 });
144 144
145 test('null', () { 145 test('null', () {
146 // null is allowed as a synonym for {}. 146 // null is allowed as a synonym for {}.
147 var request = new Request('0', ANALYSIS_UPDATE_OPTIONS, { 147 var request = new Request('0', ANALYSIS_UPDATE_OPTIONS, {
148 OPTIONS: null 148 OPTIONS: null
149 }); 149 });
150 var response = handler.handleRequest(request); 150 var response = handler.handleRequest(request);
151 expect(response, isResponseSuccess('0')); 151 expect(response, isResponseSuccess('0'));
152 }); 152 });
153 // TODO(paulberry): disabled because analyzeAngular is currently not in
154 // the API.
155 // test('valid', () {
156 // engine.AnalysisOptions oldOptions = server.contextDirectoryManager.def aultOptions;
157 // bool analyzeAngular = !oldOptions.analyzeAngular;
158 // var newOptions = new AnalysisOptions(analyzeAngular: analyzeAngular);
159 // var request = new AnalysisUpdateOptionsParams(newOptions).toRequest('0 ');
160 // var response = handler.handleRequest(request);
161 // expect(response, isResponseSuccess('0'));
162 // expect(oldOptions.analyzeAngular, equals(analyzeAngular));
163 // });
164 }); 153 });
165 }); 154 });
166 } 155 }
167 156
168 157
169 void test_setSubscriptions() { 158 void test_setSubscriptions() {
170 test('before analysis', () { 159 test('before analysis', () {
171 AnalysisTestHelper helper = new AnalysisTestHelper(); 160 AnalysisTestHelper helper = new AnalysisTestHelper();
172 // subscribe 161 // subscribe
173 helper.addAnalysisSubscriptionHighlights(helper.testFile); 162 helper.addAnalysisSubscriptionHighlights(helper.testFile);
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 return waitForServerOperationsPerformed(server); 626 return waitForServerOperationsPerformed(server);
638 } 627 }
639 628
640 static String _getCodeString(code) { 629 static String _getCodeString(code) {
641 if (code is List<String>) { 630 if (code is List<String>) {
642 code = code.join('\n'); 631 code = code.join('\n');
643 } 632 }
644 return code as String; 633 return code as String;
645 } 634 }
646 } 635 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698