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

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

Issue 694353007: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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.missing_file; 7 library dart2js.test.missing_file;
8 8
9 import 'dart:io' show exit; 9 import 'dart:io' show exit;
10 import 'package:expect/expect.dart'; 10 import 'package:expect/expect.dart';
11 11
12 import 'package:compiler/compiler.dart' 12 import 'package:compiler/compiler.dart'
13 show Diagnostic; 13 show Diagnostic;
14 import 'package:compiler/implementation/dart2js.dart' 14 import 'package:compiler/src/dart2js.dart'
15 show exitFunc, compileFunc, compile, diagnosticHandler; 15 show exitFunc, compileFunc, compile, diagnosticHandler;
16 import 'package:compiler/implementation/source_file_provider.dart' 16 import 'package:compiler/src/source_file_provider.dart'
17 show FormattingDiagnosticHandler; 17 show FormattingDiagnosticHandler;
18 18
19 class CollectingFormattingDiagnosticHandler 19 class CollectingFormattingDiagnosticHandler
20 implements FormattingDiagnosticHandler { 20 implements FormattingDiagnosticHandler {
21 21
22 final provider = null; 22 final provider = null;
23 bool showWarnings = true; 23 bool showWarnings = true;
24 bool showHints = true; 24 bool showHints = true;
25 bool verbose = true; 25 bool verbose = true;
26 bool isAborting = false; 26 bool isAborting = false;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 CollectingFormattingDiagnosticHandler handler = diagnosticHandler; 66 CollectingFormattingDiagnosticHandler handler = diagnosticHandler;
67 Expect.equals(1, handler.messages.length); 67 Expect.equals(1, handler.messages.length);
68 var message = handler.messages[0]; 68 var message = handler.messages[0];
69 Expect.isTrue(message[0].contains("Cannot open file")); 69 Expect.isTrue(message[0].contains("Cannot open file"));
70 Expect.equals(Diagnostic.ERROR, message[1]); 70 Expect.equals(Diagnostic.ERROR, message[1]);
71 Expect.equals(1, exitCode); 71 Expect.equals(1, exitCode);
72 exit(0); 72 exit(0);
73 }; 73 };
74 compile(["foo.dart", "--out=bar.dart"]); 74 compile(["foo.dart", "--out=bar.dart"]);
75 } 75 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/backend_dart/test_helper.dart ('k') | tests/compiler/dart2js/begin_end_token_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698