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

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

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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/language/function_malformed_result_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 06f9bf4612c073c829b36a8d15f6e6b6d88ef454..53988299ffd0aa8550d667b07640df5f9ef9133c 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -152,10 +152,10 @@ testTypeVariables() {
compiler = new MockCompiler();
compiler.parseScript('class Foo<T, U> {}');
compiler.resolveStatement('var x = new Foo<notype, int>();');
- Expect.equals(0, compiler.warnings.length);
- Expect.equals(1, compiler.errors.length);
- Expect.equals(MessageKind.CANNOT_RESOLVE_TYPE.error,
- compiler.errors[0].message.kind);
+ Expect.equals(1, compiler.warnings.length);
+ Expect.equals(0, compiler.errors.length);
+ Expect.equals(MessageKind.CANNOT_RESOLVE_TYPE.warning,
+ compiler.warnings[0].message.kind);
compiler = new MockCompiler();
compiler.parseScript('class Foo<T> {'
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/function_malformed_result_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698