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

Unified Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 677303002: Remove unnecessary List creation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
Index: pkg/analyzer/test/generated/utilities_test.dart
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
index 2adbb5921f7192dd0a831d6a69f57076a89973ad..5be35ea3b3fefbd06580fd8606eea58a450171f4 100644
--- a/pkg/analyzer/test/generated/utilities_test.dart
+++ b/pkg/analyzer/test/generated/utilities_test.dart
@@ -2364,12 +2364,8 @@ class DirectedGraphTest extends EngineTestCase {
List<List<DirectedGraphTest_Node>> topologicalSort =
graph.computeTopologicalSort();
EngineTestCase.assertSizeOfList(2, topologicalSort);
- EngineTestCase.assertContains(
- new List.from(topologicalSort[0]),
- [node3, node4]);
- EngineTestCase.assertContains(
- new List.from(topologicalSort[1]),
- [node1, node2]);
+ EngineTestCase.assertContains(topologicalSort[0], [node3, node4]);
+ EngineTestCase.assertContains(topologicalSort[1], [node1, node2]);
}
}

Powered by Google App Engine
This is Rietveld 408576698