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

Unified Diff: pkg/analyzer/test/generated/non_error_resolver_test.dart

Issue 712083003: Create fewer unnecessary lists (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/non_error_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/non_error_resolver_test.dart b/pkg/analyzer/test/generated/non_error_resolver_test.dart
index 24150f5b5ece9a95fc7b64265883c31d86fd10be..978c457478cdea40e8e18771f9e33df793e71a61 100644
--- a/pkg/analyzer/test/generated/non_error_resolver_test.dart
+++ b/pkg/analyzer/test/generated/non_error_resolver_test.dart
@@ -739,7 +739,7 @@ library root;
import 'lib1.dart' deferred as a;
main() {
new a.A.b();
-}'''], <ErrorCode> [ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORTED], <ErrorCode> []);
+}'''], <ErrorCode>[ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORTED], <ErrorCode>[]);
}
void test_constEval_functionTypeLiteral() {
@@ -1798,7 +1798,7 @@ class A {
static _m() {}
}''');
resolve(source);
- assertErrors(source, []);
+ assertNoErrors(source);
verify([source]);
}
@@ -2428,7 +2428,7 @@ main() {
f();
}''');
resolve(source);
- assertErrors(source, []);
+ assertNoErrors(source);
verify([source]);
}
@@ -2450,9 +2450,9 @@ foo() => 22;''',
import 'lib1.dart' deferred as other;
main() {
other.loadLibrary().then((_) => other.foo());
-}'''], <ErrorCode> [
+}'''], <ErrorCode>[
ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORTED,
- StaticTypeWarningCode.UNDEFINED_FUNCTION], <ErrorCode> []);
+ StaticTypeWarningCode.UNDEFINED_FUNCTION], <ErrorCode>[]);
}
void test_mapKeyTypeNotAssignable() {
@@ -3855,7 +3855,7 @@ class Foo<T> {
Type get t => T;
}''');
resolve(source);
- assertErrors(source, []);
+ assertErrors(source);
verify([source]);
}
@@ -3917,7 +3917,7 @@ library root;
import 'lib1.dart' deferred as lib1;
import 'lib2.dart' as lib;
import 'lib3.dart' as lib;
-main() { lib1.f1(); lib.f2(); lib.f3(); }'''], <ErrorCode> [ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORTED], <ErrorCode> []);
+main() { lib1.f1(); lib.f2(); lib.f3(); }'''], <ErrorCode>[ParserErrorCode.DEFERRED_IMPORTS_NOT_SUPPORTED], <ErrorCode>[]);
}
void test_staticAccessToInstanceMember_annotation() {
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698