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

Side by Side Diff: tests/language/import_combinators_test.dart

Issue 11047027: Implement export clause in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« runtime/vm/raw_object.h ('K') | « tests/language/export1_lib.dart ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Dart test program importing with show/hide combinators. 5 // Dart test program importing with show/hide combinators.
6 6
7 import "import1_lib.dart" show hide, show hide ugly; 7 import "import1_lib.dart" show hide, show hide ugly;
8 import "export1_lib.dart";
9 import "dart:math" as M show E;
8 10
9 part "import_combinators_part.dart"; 11 part "import_combinators_part.dart";
10 12
11 main() { 13 main() {
12 print(hide); 14 Expect.equals("hide", hide);
13 print(show); 15 Expect.equals("show", show);
14 print(lookBehindCurtain()); 16 // Top-level function from part, refers to imported variable show.
17 Expect.equals("show", lookBehindCurtain());
18 // Top-level variable E from export1_lib.dart.
19 Expect.equals("E", E);
20 // Top-level variable E imported from dart:math.
21 Expect.equals(2.718281828459045, M.E);
22 // Constant LN2 from math library, re-exported by export1_lib.dart.
23 Expect.equals(0.6931471805599453, LN2);
15 } 24 }
OLDNEW
« runtime/vm/raw_object.h ('K') | « tests/language/export1_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698