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

Side by Side Diff: tests/lib/mirrors/library_imports_metadata.dart

Issue 189843003: Reapply "Access to imports in the VM's runtime mirrors. Extend test coverage of the source mirrors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
OLDNEW
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 // Successful test: output div contains "future!". 5 library library_imports_metadata;
6
7 @m1
8 import 'dart:mirrors' as mirrors;
9
10 @m2 @m3
11 import 'dart:collection';
6 12
7 import 'dart:async'; 13 import 'dart:async';
8 14
9 const greeting = "Hello, cool people doing nice things!"; 15 const m1 = const Object();
10 16 const m2 = const Object();
11 // Prints a greeting. 17 const m3 = const Object();
12 void main() {
13 print(greeting);
14
15 new Future(() => print("future!"));
16 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/library_imports_hidden_test.dart ('k') | tests/lib/mirrors/library_imports_metadata_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698