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

Side by Side Diff: dart/tests/compiler/dart2js_extra/mirror_printer_test.dart

Issue 23659006: Update status file for CSP mode, and clear the HTML document to avoid confusing test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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
« no previous file with comments | « dart/tests/compiler/dart2js_extra/dart2js_extra.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js_extra/dart2js_extra.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698