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

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

Issue 27197006: Adjust expectations in dart2js/resolver_test after the change in r28721. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | 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 cd4e373a3cb3ec16adcd997c312c8baaf4eed9a5..eb95b7d2f08ccddbde4241e7cb86492cadc6b6b9 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -461,14 +461,10 @@ testSuperclass() {
MockCompiler compiler = new MockCompiler();
compiler.parseScript("class Foo extends Bar {}");
compiler.resolveStatement("Foo bar;");
- // TODO(ahe): We get the same error twice: once from
- // ClassResolverVisitor, and once from ClassSupertypeResolver. We
- // should only the get the error once.
- Expect.equals(2, compiler.errors.length);
- var cannotResolveBar = new Message(MessageKind.CANNOT_RESOLVE_TYPE.error,
+ Expect.equals(1, compiler.errors.length);
+ var cannotResolveBar = new Message(MessageKind.CANNOT_EXTEND_MALFORMED,
{'typeName': 'Bar'}, false);
Expect.equals(cannotResolveBar, compiler.errors[0].message);
- Expect.equals(cannotResolveBar, compiler.errors[1].message);
compiler.clearErrors();
compiler = new MockCompiler();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698