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

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

Issue 844593003: Remove Angular support from the analyzer and analysis_server packages. (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.computer.element; 5 library test.computer.element;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
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_server.dart'; 10 import 'package:analysis_server/src/protocol_server.dart';
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 ElementKind.PARAMETER); 156 ElementKind.PARAMETER);
157 expect( 157 expect(
158 newElementKind_fromEngine(engine.ElementKind.SETTER), 158 newElementKind_fromEngine(engine.ElementKind.SETTER),
159 ElementKind.SETTER); 159 ElementKind.SETTER);
160 expect( 160 expect(
161 newElementKind_fromEngine(engine.ElementKind.TOP_LEVEL_VARIABLE), 161 newElementKind_fromEngine(engine.ElementKind.TOP_LEVEL_VARIABLE),
162 ElementKind.TOP_LEVEL_VARIABLE); 162 ElementKind.TOP_LEVEL_VARIABLE);
163 expect( 163 expect(
164 newElementKind_fromEngine(engine.ElementKind.TYPE_PARAMETER), 164 newElementKind_fromEngine(engine.ElementKind.TYPE_PARAMETER),
165 ElementKind.TYPE_PARAMETER); 165 ElementKind.TYPE_PARAMETER);
166 expect(
167 newElementKind_fromEngine(engine.ElementKind.ANGULAR_COMPONENT),
168 ElementKind.UNKNOWN);
169 } 166 }
170 167
171 void test_string_constructor() { 168 void test_string_constructor() {
172 expect(new ElementKind(ElementKind.CLASS.name), ElementKind.CLASS); 169 expect(new ElementKind(ElementKind.CLASS.name), ElementKind.CLASS);
173 expect( 170 expect(
174 new ElementKind(ElementKind.CLASS_TYPE_ALIAS.name), 171 new ElementKind(ElementKind.CLASS_TYPE_ALIAS.name),
175 ElementKind.CLASS_TYPE_ALIAS); 172 ElementKind.CLASS_TYPE_ALIAS);
176 expect( 173 expect(
177 new ElementKind(ElementKind.COMPILATION_UNIT.name), 174 new ElementKind(ElementKind.COMPILATION_UNIT.name),
178 ElementKind.COMPILATION_UNIT); 175 ElementKind.COMPILATION_UNIT);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 new EnumTester<engine.ErrorType, AnalysisErrorType>().run( 428 new EnumTester<engine.ErrorType, AnalysisErrorType>().run(
432 (engine.ErrorType engineErrorType) => 429 (engine.ErrorType engineErrorType) =>
433 new AnalysisErrorType(engineErrorType.name)); 430 new AnalysisErrorType(engineErrorType.name));
434 } 431 }
435 432
436 void test_ElementKind() { 433 void test_ElementKind() {
437 new EnumTester<engine.ElementKind, ElementKind>().run( 434 new EnumTester<engine.ElementKind, ElementKind>().run(
438 newElementKind_fromEngine, 435 newElementKind_fromEngine,
439 exceptions: { 436 exceptions: {
440 // TODO(paulberry): do any of the exceptions below constitute bugs? 437 // TODO(paulberry): do any of the exceptions below constitute bugs?
441 engine.ElementKind.ANGULAR_FORMATTER: ElementKind.UNKNOWN,
442 engine.ElementKind.ANGULAR_COMPONENT: ElementKind.UNKNOWN,
443 engine.ElementKind.ANGULAR_CONTROLLER: ElementKind.UNKNOWN,
444 engine.ElementKind.ANGULAR_DIRECTIVE: ElementKind.UNKNOWN,
445 engine.ElementKind.ANGULAR_PROPERTY: ElementKind.UNKNOWN,
446 engine.ElementKind.ANGULAR_SCOPE_PROPERTY: ElementKind.UNKNOWN,
447 engine.ElementKind.ANGULAR_SELECTOR: ElementKind.UNKNOWN,
448 engine.ElementKind.ANGULAR_VIEW: ElementKind.UNKNOWN,
449 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN, 438 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN,
450 engine.ElementKind.EMBEDDED_HTML_SCRIPT: ElementKind.UNKNOWN, 439 engine.ElementKind.EMBEDDED_HTML_SCRIPT: ElementKind.UNKNOWN,
451 engine.ElementKind.ERROR: ElementKind.UNKNOWN, 440 engine.ElementKind.ERROR: ElementKind.UNKNOWN,
452 engine.ElementKind.EXPORT: ElementKind.UNKNOWN, 441 engine.ElementKind.EXPORT: ElementKind.UNKNOWN,
453 engine.ElementKind.EXTERNAL_HTML_SCRIPT: ElementKind.UNKNOWN, 442 engine.ElementKind.EXTERNAL_HTML_SCRIPT: ElementKind.UNKNOWN,
454 engine.ElementKind.HTML: ElementKind.UNKNOWN, 443 engine.ElementKind.HTML: ElementKind.UNKNOWN,
455 engine.ElementKind.IMPORT: ElementKind.UNKNOWN, 444 engine.ElementKind.IMPORT: ElementKind.UNKNOWN,
456 engine.ElementKind.NAME: ElementKind.UNKNOWN, 445 engine.ElementKind.NAME: ElementKind.UNKNOWN,
457 engine.ElementKind.POLYMER_ATTRIBUTE: ElementKind.UNKNOWN, 446 engine.ElementKind.POLYMER_ATTRIBUTE: ElementKind.UNKNOWN,
458 engine.ElementKind.POLYMER_TAG_DART: ElementKind.UNKNOWN, 447 engine.ElementKind.POLYMER_TAG_DART: ElementKind.UNKNOWN,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 ApiEnum apiValue = convert(engineValue); 500 ApiEnum apiValue = convert(engineValue);
512 expect(apiValue, equals(expectedResult)); 501 expect(apiValue, equals(expectedResult));
513 } 502 }
514 } else { 503 } else {
515 ApiEnum apiValue = convert(engineValue); 504 ApiEnum apiValue = convert(engineValue);
516 expect(apiValue.name, equals(enumName)); 505 expect(apiValue.name, equals(enumName));
517 } 506 }
518 }); 507 });
519 } 508 }
520 } 509 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698