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

Side by Side Diff: tests/compiler/dart2js/preserve_uris_test.dart

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « tests/compiler/dart2js/patch_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | 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) 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 import 'dart:async';
6
5 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
6 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
7 import 'memory_compiler.dart' show runCompiler, OutputCollector; 9 import 'memory_compiler.dart' show runCompiler, OutputCollector;
8 10
9 const MEMORY_SOURCE_FILES = const <String, String> { 11 const MEMORY_SOURCE_FILES = const <String, String> {
10 'main.dart': """ 12 'main.dart': """
11 library main; 13 library main;
12 14
13 @MirrorsUsed(targets: const ['main', 'lib']) 15 @MirrorsUsed(targets: const ['main', 'lib'])
14 import 'dart:mirrors'; 16 import 'dart:mirrors';
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 Expect.equals(preserveUris, jsOutput.contains("main.dart")); 51 Expect.equals(preserveUris, jsOutput.contains("main.dart"));
50 Expect.equals(preserveUris, jsOutput.contains("lib.dart")); 52 Expect.equals(preserveUris, jsOutput.contains("lib.dart"));
51 } 53 }
52 54
53 void main() { 55 void main() {
54 asyncTest(() async { 56 asyncTest(() async {
55 await runTest(true); 57 await runTest(true);
56 await runTest(false); 58 await runTest(false);
57 }); 59 });
58 } 60 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/patch_test.dart ('k') | tests/compiler/dart2js/private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698