| OLD | NEW |
| 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 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 exceptions: { | 436 exceptions: { |
| 437 // TODO(paulberry): do any of the exceptions below constitute bugs? | 437 // TODO(paulberry): do any of the exceptions below constitute bugs? |
| 438 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN, | 438 engine.ElementKind.DYNAMIC: ElementKind.UNKNOWN, |
| 439 engine.ElementKind.EMBEDDED_HTML_SCRIPT: ElementKind.UNKNOWN, | 439 engine.ElementKind.EMBEDDED_HTML_SCRIPT: ElementKind.UNKNOWN, |
| 440 engine.ElementKind.ERROR: ElementKind.UNKNOWN, | 440 engine.ElementKind.ERROR: ElementKind.UNKNOWN, |
| 441 engine.ElementKind.EXPORT: ElementKind.UNKNOWN, | 441 engine.ElementKind.EXPORT: ElementKind.UNKNOWN, |
| 442 engine.ElementKind.EXTERNAL_HTML_SCRIPT: ElementKind.UNKNOWN, | 442 engine.ElementKind.EXTERNAL_HTML_SCRIPT: ElementKind.UNKNOWN, |
| 443 engine.ElementKind.HTML: ElementKind.UNKNOWN, | 443 engine.ElementKind.HTML: ElementKind.UNKNOWN, |
| 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.POLYMER_ATTRIBUTE: ElementKind.UNKNOWN, | |
| 447 engine.ElementKind.POLYMER_TAG_DART: ElementKind.UNKNOWN, | |
| 448 engine.ElementKind.POLYMER_TAG_HTML: ElementKind.UNKNOWN, | |
| 449 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN | 446 engine.ElementKind.UNIVERSE: ElementKind.UNKNOWN |
| 450 }); | 447 }); |
| 451 } | 448 } |
| 452 | 449 |
| 453 void test_SearchResultKind() { | 450 void test_SearchResultKind() { |
| 454 // 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 |
| 455 // use SearchResultKind inside the analysis server? | 452 // use SearchResultKind inside the analysis server? |
| 456 new EnumTester<MatchKind, SearchResultKind>().run( | 453 new EnumTester<MatchKind, SearchResultKind>().run( |
| 457 newSearchResultKind_fromEngine, | 454 newSearchResultKind_fromEngine, |
| 458 exceptions: { | 455 exceptions: { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 ApiEnum apiValue = convert(engineValue); | 497 ApiEnum apiValue = convert(engineValue); |
| 501 expect(apiValue, equals(expectedResult)); | 498 expect(apiValue, equals(expectedResult)); |
| 502 } | 499 } |
| 503 } else { | 500 } else { |
| 504 ApiEnum apiValue = convert(engineValue); | 501 ApiEnum apiValue = convert(engineValue); |
| 505 expect(apiValue.name, equals(enumName)); | 502 expect(apiValue.name, equals(enumName)); |
| 506 } | 503 } |
| 507 }); | 504 }); |
| 508 } | 505 } |
| 509 } | 506 } |
| OLD | NEW |