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

Unified Diff: tests/compiler/dart2js/diagnose_ambiguous_test.dart

Issue 23684057: Support new import rules. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/diagnose_ambiguous_test.dart
diff --git a/tests/compiler/dart2js/diagnose_ambiguous_test.dart b/tests/compiler/dart2js/diagnose_ambiguous_test.dart
index e026f90da910d38301db98126075f0bd5c6a18b6..cc7d02c380f653d9f2cff93c138d3bbf49778911 100644
--- a/tests/compiler/dart2js/diagnose_ambiguous_test.dart
+++ b/tests/compiler/dart2js/diagnose_ambiguous_test.dart
@@ -9,8 +9,6 @@ import 'memory_source_file_helper.dart';
import '../../../sdk/lib/_internal/compiler/compiler.dart'
show Diagnostic;
-import 'dart:json';
-
main() {
Uri script = currentDirectory.resolve(nativeToUriPath(Platform.script));
Uri libraryRoot = script.resolve('../../../sdk/');
@@ -37,20 +35,10 @@ main() {
var expected = [
'memory:exporter.dart:43:47:Info: "function(hest)" is defined here.'
':info',
- 'memory:library.dart:14:19:Info: "class(Fisk)" is (re)exported by '
- 'multiple libraries.:info',
- 'memory:library.dart:30:34:Info: "function(fisk)" is (re)exported by '
- 'multiple libraries.:info',
'memory:library.dart:41:45:Info: "function(hest)" is defined here.'
':info',
- 'memory:main.dart:0:22:Info: "class(Fisk)" is imported here.:info',
- 'memory:main.dart:0:22:Info: "function(fisk)" is imported here.:info',
'memory:main.dart:0:22:Info: "function(hest)" is imported here.:info',
- 'memory:main.dart:23:46:Info: "class(Fisk)" is imported here.:info',
- 'memory:main.dart:23:46:Info: "function(fisk)" is imported here.:info',
'memory:main.dart:23:46:Info: "function(hest)" is imported here.:info',
- 'memory:main.dart:59:63:Warning: Duplicate import of "Fisk".:warning',
- 'memory:main.dart:76:80:Error: Duplicate import of "fisk".:error',
'memory:main.dart:86:90:Error: Duplicate import of "hest".:error'
];
Expect.listEquals(expected, diagnostics);
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698