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

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

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://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
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 // Test that the helper [Compiler.inUserCode] works as intended. 5 // Test that the helper [Compiler.inUserCode] works as intended.
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/dart2jslib.dart' show Compiler; 10 import 'package:compiler/src/compiler.dart' show Compiler;
11 import 'memory_compiler.dart'; 11 import 'memory_compiler.dart';
12 12
13 const SOURCE = const { 13 const SOURCE = const {
14 'main.dart': """ 14 'main.dart': """
15 library main; 15 library main;
16 16
17 import 'dart:async'; 17 import 'dart:async';
18 import 'foo.dart'; 18 import 'foo.dart';
19 import 'pkg/sub/bar.dart'; 19 import 'pkg/sub/bar.dart';
20 import 'package:sub/bar.dart'; 20 import 'package:sub/bar.dart';
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 'dart:core': false}); 93 'dart:core': false});
94 await test( 94 await test(
95 [Uri.parse('dart:async'), Uri.parse('package:sub/bar.dart')], 95 [Uri.parse('dart:async'), Uri.parse('package:sub/bar.dart')],
96 {'package:sub/bar.dart': true, 96 {'package:sub/bar.dart': true,
97 'package:sub/baz.dart': true, 97 'package:sub/baz.dart': true,
98 'package:sup/boz.dart': false, 98 'package:sup/boz.dart': false,
99 'dart:core': true, 99 'dart:core': true,
100 'dart:async': true}); 100 'dart:async': true});
101 } 101 }
102 102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698