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

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

Issue 346553002: Cleanup argument mismatch message. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 1879850dd44577a1590b928b3d158301927ee003..c76167fa026772271b6d09084bc25f4421faf385 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -82,7 +82,6 @@ main() {
testIncrementsAndDecrements,
testOverrideHashCodeCheck,
testSupertypeOrder,
- testConstructorArgumentMismatch,
testConstConstructorAndNonFinalFields,
], (f) => f()));
}
@@ -646,21 +645,6 @@ Future testNewExpression() {
});
}
-Future testConstructorArgumentMismatch() {
- return MockCompiler.create((MockCompiler compiler) {
- String script = "class A {} foo() { print(new A(42)); }";
- compiler.parseScript(script);
- FunctionElement fooElement = compiler.mainApp.find('foo');
- Expect.isNotNull(fooElement);
- fooElement.parseNode(compiler);
- compiler.resolver.resolve(fooElement);
-
- compareWarningKinds(
- script, [MessageKind.INVALID_ARGUMENTS], compiler.warnings);
- compareWarningKinds(script, [], compiler.errors);
- });
-}
-
Future testTopLevelFields() {
return MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("int a;");

Powered by Google App Engine
This is Rietveld 408576698