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

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

Issue 368833002: Cleanup warnings in unit tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix outdated type annotations. Created 6 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/compiler/dart2js/parser_helper.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index 1c0c0ecfc1ac457566853ea5a84eb5890d804304..3da4a32e0fc96c3c52d4d4038d932f107604ad32 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -8,10 +8,9 @@ import "package:async_helper/async_helper.dart";
import "package:compiler/implementation/dart2jslib.dart";
import "package:compiler/implementation/elements/elements.dart";
import "package:compiler/implementation/tree/tree.dart";
-import "package:compiler/implementation/util/util.dart";
import "mock_compiler.dart";
import "mock_libraries.dart";
-import "parser_helper.dart";
+import 'package:compiler/implementation/elements/modelx.dart';
Future<Compiler> applyPatch(String script, String patch,
{bool analyzeAll: false, bool analyzeOnly: false}) {
@@ -24,7 +23,7 @@ Future<Compiler> applyPatch(String script, String patch,
return compiler.init().then((_) => compiler);
}
-void expectHasBody(compiler, Element element) {
+void expectHasBody(compiler, ElementX element) {
var node = element.parseNode(compiler);
Expect.isNotNull(node, "Element isn't parseable, when a body was expected");
Expect.isNotNull(node.body);
@@ -34,7 +33,7 @@ void expectHasBody(compiler, Element element) {
Expect.notEquals(node.body.getBeginToken(), node.body.getEndToken());
}
-void expectHasNoBody(compiler, Element element) {
+void expectHasNoBody(compiler, ElementX element) {
var node = element.parseNode(compiler);
Expect.isNotNull(node, "Element isn't parseable, when a body was expected");
Expect.isFalse(node.hasBody());
« no previous file with comments | « tests/compiler/dart2js/parser_helper.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698