| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer.test.src.summary.prelinker_test; | 5 library analyzer.test.src.summary.prelinker_test; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/element/element.dart'; | 7 import 'package:analyzer/dart/element/element.dart'; |
| 8 import 'package:analyzer/src/generated/source.dart'; | 8 import 'package:analyzer/src/generated/source.dart'; |
| 9 import 'package:analyzer/src/generated/source_io.dart'; | 9 import 'package:analyzer/src/generated/source_io.dart'; |
| 10 import 'package:analyzer/src/summary/format.dart'; | 10 import 'package:analyzer/src/summary/idl.dart'; |
| 11 import 'package:analyzer/src/summary/prelink.dart'; | 11 import 'package:analyzer/src/summary/prelink.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 13 | 13 |
| 14 import '../../reflective_tests.dart'; | 14 import '../../reflective_tests.dart'; |
| 15 import 'summarize_elements_test.dart'; | 15 import 'summarize_elements_test.dart'; |
| 16 import 'summary_common.dart'; | 16 import 'summary_common.dart'; |
| 17 | 17 |
| 18 main() { | 18 main() { |
| 19 groupSep = ' | '; | 19 groupSep = ' | '; |
| 20 runReflectiveTests(PrelinkerTest); | 20 runReflectiveTests(PrelinkerTest); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 fail('Prelinker unexpectedly requested namespace for "$relativeUri"' | 83 fail('Prelinker unexpectedly requested namespace for "$relativeUri"' |
| 84 ' (resolves to "$absoluteUri").' | 84 ' (resolves to "$absoluteUri").' |
| 85 ' Namespaces available: ${uriToPublicNamespace.keys}'); | 85 ' Namespaces available: ${uriToPublicNamespace.keys}'); |
| 86 } | 86 } |
| 87 return namespace; | 87 return namespace; |
| 88 } | 88 } |
| 89 linked = new LinkedLibrary.fromBuffer( | 89 linked = new LinkedLibrary.fromBuffer( |
| 90 prelink(unlinkedUnits[0], getPart, getImport).toBuffer()); | 90 prelink(unlinkedUnits[0], getPart, getImport).toBuffer()); |
| 91 } | 91 } |
| 92 } | 92 } |
| OLD | NEW |