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

Side by Side Diff: pkg/analysis_server/test/protocol_server_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.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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 engine.ElementKind.IMPORT: ElementKind.UNKNOWN, 444 engine.ElementKind.IMPORT: ElementKind.UNKNOWN,
445 engine.ElementKind.NAME: ElementKind.UNKNOWN, 445 engine.ElementKind.NAME: ElementKind.UNKNOWN,
446 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN 446 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN
447 }); 447 });
448 } 448 }
449 449
450 void test_SearchResultKind() { 450 void test_SearchResultKind() {
451 // TODO(paulberry): why does the MatchKind class exist at all? Can't we 451 // TODO(paulberry): why does the MatchKind class exist at all? Can't we
452 // use SearchResultKind inside the analysis server? 452 // use SearchResultKind inside the analysis server?
453 new EnumTester<MatchKind, SearchResultKind>().run( 453 new EnumTester<MatchKind, SearchResultKind>().run(
454 newSearchResultKind_fromEngine, 454 newSearchResultKind_fromEngine);
455 exceptions: {
456 // TODO(paulberry): do any of the exceptions below constitute bugs?
457 MatchKind.ANGULAR_REFERENCE: SearchResultKind.UNKNOWN,
458 MatchKind.ANGULAR_CLOSING_TAG_REFERENCE: SearchResultKind.UNKNOWN
459 });
460 } 455 }
461 } 456 }
462 457
463 458
464 /** 459 /**
465 * Helper class for testing the correspondence between an analysis engine enum 460 * Helper class for testing the correspondence between an analysis engine enum
466 * and an analysis server API enum. 461 * and an analysis server API enum.
467 */ 462 */
468 class EnumTester<EngineEnum, ApiEnum extends Enum> { 463 class EnumTester<EngineEnum, ApiEnum extends Enum> {
469 /** 464 /**
(...skipping 27 matching lines...) Expand all
497 ApiEnum apiValue = convert(engineValue); 492 ApiEnum apiValue = convert(engineValue);
498 expect(apiValue, equals(expectedResult)); 493 expect(apiValue, equals(expectedResult));
499 } 494 }
500 } else { 495 } else {
501 ApiEnum apiValue = convert(engineValue); 496 ApiEnum apiValue = convert(engineValue);
502 expect(apiValue.name, equals(enumName)); 497 expect(apiValue.name, equals(enumName));
503 } 498 }
504 }); 499 });
505 } 500 }
506 } 501 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/integration/protocol_matchers.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698