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

Side by Side Diff: pkg/analyzer/test/generated/resolver_test.dart

Issue 641883002: Remove PUB_SUGGESTION error type from analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.resolver_test; 8 library engine.resolver_test;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 13665 matching lines...) Expand 10 before | Expand all | Expand 10 after
13676 Source source = addSource(EngineTestCase.createSource(["import 'package:some package/other.dart';"])); 13676 Source source = addSource(EngineTestCase.createSource(["import 'package:some package/other.dart';"]));
13677 resolve(source); 13677 resolve(source);
13678 assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]); 13678 assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
13679 } 13679 }
13680 13680
13681 void test_import_packageWithDotDot() { 13681 void test_import_packageWithDotDot() {
13682 Source source = addSource(EngineTestCase.createSource(["import 'package:some package/../other.dart';"])); 13682 Source source = addSource(EngineTestCase.createSource(["import 'package:some package/../other.dart';"]));
13683 resolve(source); 13683 resolve(source);
13684 assertErrors(source, [ 13684 assertErrors(source, [
13685 CompileTimeErrorCode.URI_DOES_NOT_EXIST, 13685 CompileTimeErrorCode.URI_DOES_NOT_EXIST,
13686 PubSuggestionCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT]); 13686 HintCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT]);
13687 } 13687 }
13688 13688
13689 void test_import_packageWithLeadingDotDot() { 13689 void test_import_packageWithLeadingDotDot() {
13690 Source source = addSource(EngineTestCase.createSource(["import 'package:../o ther.dart';"])); 13690 Source source = addSource(EngineTestCase.createSource(["import 'package:../o ther.dart';"]));
13691 resolve(source); 13691 resolve(source);
13692 assertErrors(source, [ 13692 assertErrors(source, [
13693 CompileTimeErrorCode.URI_DOES_NOT_EXIST, 13693 CompileTimeErrorCode.URI_DOES_NOT_EXIST,
13694 PubSuggestionCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT]); 13694 HintCode.PACKAGE_IMPORT_CONTAINS_DOT_DOT]);
13695 } 13695 }
13696 13696
13697 void test_import_referenceIntoLibDirectory() { 13697 void test_import_referenceIntoLibDirectory() {
13698 cacheSource("/myproj/pubspec.yaml", ""); 13698 cacheSource("/myproj/pubspec.yaml", "");
13699 cacheSource("/myproj/lib/other.dart", ""); 13699 cacheSource("/myproj/lib/other.dart", "");
13700 Source source = addNamedSource("/myproj/web/test.dart", EngineTestCase.creat eSource(["import '../lib/other.dart';"])); 13700 Source source = addNamedSource("/myproj/web/test.dart", EngineTestCase.creat eSource(["import '../lib/other.dart';"]));
13701 resolve(source); 13701 resolve(source);
13702 assertErrors(source, [PubSuggestionCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_F ILE_INSIDE]); 13702 assertErrors(source, [HintCode.FILE_IMPORT_OUTSIDE_LIB_REFERENCES_FILE_INSID E]);
13703 } 13703 }
13704 13704
13705 void test_import_referenceIntoLibDirectory_no_pubspec() { 13705 void test_import_referenceIntoLibDirectory_no_pubspec() {
13706 cacheSource("/myproj/lib/other.dart", ""); 13706 cacheSource("/myproj/lib/other.dart", "");
13707 Source source = addNamedSource("/myproj/web/test.dart", EngineTestCase.creat eSource(["import '../lib/other.dart';"])); 13707 Source source = addNamedSource("/myproj/web/test.dart", EngineTestCase.creat eSource(["import '../lib/other.dart';"]));
13708 resolve(source); 13708 resolve(source);
13709 assertNoErrors(source); 13709 assertNoErrors(source);
13710 } 13710 }
13711 13711
13712 void test_import_referenceOutOfLibDirectory() { 13712 void test_import_referenceOutOfLibDirectory() {
13713 cacheSource("/myproj/pubspec.yaml", ""); 13713 cacheSource("/myproj/pubspec.yaml", "");
13714 cacheSource("/myproj/web/other.dart", ""); 13714 cacheSource("/myproj/web/other.dart", "");
13715 Source source = addNamedSource("/myproj/lib/test.dart", EngineTestCase.creat eSource(["import '../web/other.dart';"])); 13715 Source source = addNamedSource("/myproj/lib/test.dart", EngineTestCase.creat eSource(["import '../web/other.dart';"]));
13716 resolve(source); 13716 resolve(source);
13717 assertErrors(source, [PubSuggestionCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FI LE_OUTSIDE]); 13717 assertErrors(source, [HintCode.FILE_IMPORT_INSIDE_LIB_REFERENCES_FILE_OUTSID E]);
13718 } 13718 }
13719 13719
13720 void test_import_referenceOutOfLibDirectory_no_pubspec() { 13720 void test_import_referenceOutOfLibDirectory_no_pubspec() {
13721 cacheSource("/myproj/web/other.dart", ""); 13721 cacheSource("/myproj/web/other.dart", "");
13722 Source source = addNamedSource("/myproj/lib/test.dart", EngineTestCase.creat eSource(["import '../web/other.dart';"])); 13722 Source source = addNamedSource("/myproj/lib/test.dart", EngineTestCase.creat eSource(["import '../web/other.dart';"]));
13723 resolve(source); 13723 resolve(source);
13724 assertNoErrors(source); 13724 assertNoErrors(source);
13725 } 13725 }
13726 13726
13727 void test_import_valid_inside_lib1() { 13727 void test_import_valid_inside_lib1() {
(...skipping 9495 matching lines...) Expand 10 before | Expand all | Expand 10 after
23223 runReflectiveTests(HintCodeTest); 23223 runReflectiveTests(HintCodeTest);
23224 runReflectiveTests(MemberMapTest); 23224 runReflectiveTests(MemberMapTest);
23225 runReflectiveTests(NonErrorResolverTest); 23225 runReflectiveTests(NonErrorResolverTest);
23226 runReflectiveTests(NonHintCodeTest); 23226 runReflectiveTests(NonHintCodeTest);
23227 runReflectiveTests(SimpleResolverTest); 23227 runReflectiveTests(SimpleResolverTest);
23228 runReflectiveTests(StaticTypeWarningCodeTest); 23228 runReflectiveTests(StaticTypeWarningCodeTest);
23229 runReflectiveTests(StaticWarningCodeTest); 23229 runReflectiveTests(StaticWarningCodeTest);
23230 runReflectiveTests(StrictModeTest); 23230 runReflectiveTests(StrictModeTest);
23231 runReflectiveTests(TypePropagationTest); 23231 runReflectiveTests(TypePropagationTest);
23232 } 23232 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698