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

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

Issue 137893024: Revert "Reapply "Implement new model for class members." and "Implement new model for interface mem… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 compiler can handle imports when package root has not been set. 5 // Test that the compiler can handle imports when package root has not been set.
6 6
7 library dart2js.test.package_root; 7 library dart2js.test.package_root;
8 8
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import "package:async_helper/async_helper.dart"; 10 import "package:async_helper/async_helper.dart";
11 import 'memory_source_file_helper.dart'; 11 import 'memory_source_file_helper.dart';
12 12
13 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' 13 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
14 show NullSink; 14 show NullSink;
15 15
16 import '../../../sdk/lib/_internal/compiler/compiler.dart' 16 import '../../../sdk/lib/_internal/compiler/compiler.dart'
17 show DiagnosticHandler, Diagnostic; 17 show DiagnosticHandler, Diagnostic;
18 18
19 import 'dart:async'; 19 import 'dart:async';
20 20
21 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/mirrors.dart' ;
22 import '../../../sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirro r.dart';
23
21 const MEMORY_SOURCE_FILES = const { 24 const MEMORY_SOURCE_FILES = const {
22 'main.dart': ''' 25 'main.dart': '''
23 26
24 import 'package:foo/foo.dart'; 27 import 'package:foo/foo.dart';
25 28
26 main() {} 29 main() {}
27 ''', 30 ''',
28 }; 31 };
29 32
30 void runCompiler(Uri main) { 33 void runCompiler(Uri main) {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 Expect.equals("Error: Cannot resolve 'package:foo/foo.dart'. " 65 Expect.equals("Error: Cannot resolve 'package:foo/foo.dart'. "
63 "Package root has not been set.", 66 "Package root has not been set.",
64 errors[0]); 67 errors[0]);
65 })); 68 }));
66 } 69 }
67 70
68 void main() { 71 void main() {
69 runCompiler(Uri.parse('memory:main.dart')); 72 runCompiler(Uri.parse('memory:main.dart'));
70 runCompiler(Uri.parse('package:foo/foo.dart')); 73 runCompiler(Uri.parse('package:foo/foo.dart'));
71 } 74 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/missing_file_test.dart ('k') | tests/compiler/dart2js/type_test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698