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

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

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
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 library importCombinatorsTest; 7 library importCombinatorsTest;
8
8 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
9 import "import1_lib.dart" show hide, show hide ugly; 10 import "import1_lib.dart" show hide, show hide ugly;
10 import "export1_lib.dart"; 11 import "export1_lib.dart";
11 import "dart:math" as M show E; 12 import "dart:math" as M show E;
12 13
13 part "import_combinators_part.dart"; 14 part "import_combinators_part.dart";
14 15
15 main() { 16 main() {
16 Expect.equals("hide", hide); 17 Expect.equals("hide", hide);
17 Expect.equals("show", show); 18 Expect.equals("show", show);
18 // Top-level function from part, refers to imported variable show. 19 // Top-level function from part, refers to imported variable show.
19 Expect.equals("show", lookBehindCurtain()); 20 Expect.equals("show", lookBehindCurtain());
20 // Top-level variable E from export1_lib.dart. 21 // Top-level variable E from export1_lib.dart.
21 Expect.equals("E", E); 22 Expect.equals("E", E);
22 // Top-level variable E imported from dart:math. 23 // Top-level variable E imported from dart:math.
23 Expect.equals(2.718281828459045, M.E); 24 Expect.equals(2.718281828459045, M.E);
24 // Constant LN2 from math library, re-exported by export1_lib.dart. 25 // Constant LN2 from math library, re-exported by export1_lib.dart.
25 Expect.equals(0.6931471805599453, LN2); 26 Expect.equals(0.6931471805599453, LN2);
26 } 27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698