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

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

Issue 1286143003: Move diagnostic_listener.dart and messages.dart to the diagnostics folder (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) 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.missing_file; 7 library dart2js.test.missing_file;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'package:async_helper/async_helper.dart'; 10 import 'package:async_helper/async_helper.dart';
11 import "package:compiler/src/messages.dart"; 11 import "package:compiler/src/diagnostics/messages.dart";
12 import 'package:expect/expect.dart'; 12 import 'package:expect/expect.dart';
13 import 'memory_compiler.dart'; 13 import 'memory_compiler.dart';
14 14
15 const MEMORY_SOURCE_FILES = const { 15 const MEMORY_SOURCE_FILES = const {
16 'main.dart': ''' 16 'main.dart': '''
17 17
18 import 'foo.dart'; 18 import 'foo.dart';
19 19
20 main() {} 20 main() {}
21 ''', 21 ''',
(...skipping 17 matching lines...) Expand all
39 void main() { 39 void main() {
40 asyncTest(() async { 40 asyncTest(() async {
41 await runTest( 41 await runTest(
42 Uri.parse('memory:main.dart'), MessageKind.READ_SCRIPT_ERROR); 42 Uri.parse('memory:main.dart'), MessageKind.READ_SCRIPT_ERROR);
43 await runTest( 43 await runTest(
44 Uri.parse('memory:foo.dart'), MessageKind.READ_SCRIPT_ERROR); 44 Uri.parse('memory:foo.dart'), MessageKind.READ_SCRIPT_ERROR);
45 await runTest( 45 await runTest(
46 Uri.parse('dart:foo'), MessageKind.READ_SCRIPT_ERROR); 46 Uri.parse('dart:foo'), MessageKind.READ_SCRIPT_ERROR);
47 }); 47 });
48 } 48 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/message_kind_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698