| 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 import 'package:analysis_testing/mock_sdk.dart'; | 5 import 'mock_sdk.dart'; |
| 6 import 'package:analyzer/file_system/memory_file_system.dart'; | 6 import 'package:analyzer/file_system/memory_file_system.dart'; |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/element.dart'; | 8 import 'package:analyzer/src/generated/element.dart'; |
| 9 import 'package:analyzer/src/generated/sdk.dart'; | 9 import 'package:analyzer/src/generated/sdk.dart'; |
| 10 import 'package:analyzer/src/generated/source.dart'; | 10 import 'package:analyzer/src/generated/source.dart'; |
| 11 import 'package:unittest/unittest.dart'; | 11 import 'package:unittest/unittest.dart'; |
| 12 | 12 |
| 13 import '../lib/src/closed_world.dart'; | 13 import '../lib/src/closed_world.dart'; |
| 14 import '../lib/src/driver.dart'; | 14 import '../lib/src/driver.dart'; |
| 15 | 15 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 FunctionElement fooElement = functions['foo']; | 64 FunctionElement fooElement = functions['foo']; |
| 65 expect(world.executableElements.keys, contains(fooElement)); | 65 expect(world.executableElements.keys, contains(fooElement)); |
| 66 FunctionDeclaration fooAst = world.executableElements[fooElement]; | 66 FunctionDeclaration fooAst = world.executableElements[fooElement]; |
| 67 expect(fooAst.element, equals(fooElement)); | 67 expect(fooAst.element, equals(fooElement)); |
| 68 FunctionElement barElement = functions['bar']; | 68 FunctionElement barElement = functions['bar']; |
| 69 expect( | 69 expect( |
| 70 world.executableElements.keys, | 70 world.executableElements.keys, |
| 71 isNot(contains(functions[barElement]))); | 71 isNot(contains(functions[barElement]))); |
| 72 }); | 72 }); |
| 73 } | 73 } |
| OLD | NEW |