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

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

Issue 51953009: Add new argument to compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 import 'memory_source_file_helper.dart'; 7 import 'memory_source_file_helper.dart';
8 8
9 import '../../../sdk/lib/_internal/compiler/compiler.dart' 9 import '../../../sdk/lib/_internal/compiler/compiler.dart'
10 show Diagnostic; 10 show Diagnostic;
(...skipping 11 matching lines...) Expand all
22 return; 22 return;
23 } 23 }
24 diagnostics.add('$uri:$begin:$end:$message:$kind'); 24 diagnostics.add('$uri:$begin:$end:$message:$kind');
25 } 25 }
26 26
27 Compiler compiler = new Compiler(provider.readStringFromUri, 27 Compiler compiler = new Compiler(provider.readStringFromUri,
28 (name, extension) => null, 28 (name, extension) => null,
29 diagnosticHandler, 29 diagnosticHandler,
30 libraryRoot, 30 libraryRoot,
31 packageRoot, 31 packageRoot,
32 ['--analyze-only']); 32 ['--analyze-only'],
33 {});
33 asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) { 34 asyncTest(() => compiler.run(Uri.parse('memory:main.dart')).then((_) {
34 diagnostics.sort(); 35 diagnostics.sort();
35 var expected = [ 36 var expected = [
36 "memory:exporter.dart:43:47:Info: 'hest' is defined here." 37 "memory:exporter.dart:43:47:Info: 'hest' is defined here."
37 ":info", 38 ":info",
38 "memory:library.dart:41:45:Info: 'hest' is defined here." 39 "memory:library.dart:41:45:Info: 'hest' is defined here."
39 ":info", 40 ":info",
40 "memory:main.dart:0:22:Info: 'hest' is imported here.:info", 41 "memory:main.dart:0:22:Info: 'hest' is imported here.:info",
41 "memory:main.dart:23:46:Info: 'hest' is imported here.:info", 42 "memory:main.dart:23:46:Info: 'hest' is imported here.:info",
42 "memory:main.dart:86:90:Error: Duplicate import of 'hest'.:error" 43 "memory:main.dart:86:90:Error: Duplicate import of 'hest'.:error"
(...skipping 25 matching lines...) Expand all
68 hest() {} 69 hest() {}
69 """, 70 """,
70 'exporter.dart': """ 71 'exporter.dart': """
71 library exporter; 72 library exporter;
72 73
73 export 'library.dart'; 74 export 'library.dart';
74 75
75 hest() {} 76 hest() {}
76 """, 77 """,
77 }; 78 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart ('k') | tests/compiler/dart2js/memory_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698