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

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

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 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 f16e481f1d19d2467dd8be290a240febe4ee0fdb..9bbfe8eed2ddeecb8a63fbf376a5333df0f4cde1 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -134,8 +134,6 @@ class Foo extends X<Foo> {}
class Bar extends Foo implements X<Bar> {}
""");
compiler.resolveStatement("Bar bar;");
- LibraryElement mainApp = compiler.mainApp;
- ClassElement classBar = mainApp.find("Bar");
DiagnosticCollector collector = compiler.diagnosticCollector;
Expect.equals(0, collector.warnings.length);
Expect.equals(1, collector.errors.length);
@@ -289,7 +287,6 @@ Future testThis() {
(funElement as FunctionElementX).parseNode(compiler.parsingContext);
visitor.visit(function.body);
Map mapping = map(visitor);
- List<Element> values = mapping.values.toList();
DiagnosticCollector collector = compiler.diagnosticCollector;
Expect.equals(0, mapping.length);
Expect.equals(0, collector.warnings.length);
@@ -628,11 +625,6 @@ Future testOneInterface() {
// correctly.
compiler.parseScript("abstract class Bar {}");
- ResolverVisitor visitor = new ResolverVisitor(
- compiler.resolution,
- null,
- new ResolutionRegistry(
- compiler.backend.target, new CollectingTreeElements(null)));
compiler.resolveStatement("Foo bar;");
LibraryElement mainApp = compiler.mainApp;
« no previous file with comments | « tests/compiler/dart2js/related_types_test.dart ('k') | tests/compiler/dart2js/serialization/duplicate_library_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698