| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /// Prints all information about all mirrors. This tests that it is possible to | 5 /// Prints all information about all mirrors. This tests that it is possible to |
| 6 /// enumerate all reflective information without crashing. | 6 /// enumerate all reflective information without crashing. |
| 7 | 7 |
| 8 // Note: Adding imports below is fine for regression tests. For example, | 8 // Note: Adding imports below is fine for regression tests. For example, |
| 9 // 'crash_library_metadata.dart' is imported to ensure the compiler doesn't | 9 // 'crash_library_metadata.dart' is imported to ensure the compiler doesn't |
| 10 // crash. | 10 // crash. |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 static StringBuffer stringify(Map<Uri, LibraryMirror> libraries) { | 173 static StringBuffer stringify(Map<Uri, LibraryMirror> libraries) { |
| 174 StringBuffer buffer = new StringBuffer(); | 174 StringBuffer buffer = new StringBuffer(); |
| 175 libraries.values.forEach(new MirrorPrinter(buffer).writeLibrary); | 175 libraries.values.forEach(new MirrorPrinter(buffer).writeLibrary); |
| 176 return buffer; | 176 return buffer; |
| 177 } | 177 } |
| 178 } | 178 } |
| 179 | 179 |
| 180 main() { | 180 main() { |
| 181 print(MirrorPrinter.stringify(currentMirrorSystem().libraries)); | 181 print(MirrorPrinter.stringify(currentMirrorSystem().libraries)); |
| 182 // Clear the nodes to avoid confusing the fine test framework (by "fine" I |
| 183 // mean something else) -- ahe. |
| 184 document.body.nodes.clear(); |
| 182 } | 185 } |
| OLD | NEW |