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

Unified Diff: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java

Issue 961443004: Issue 21978. Put function 'main' first when sorting members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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: editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java
index d613ef1ac383643fea221e23ed3a5ec89954f3d1..c7c61cfc45c7b85092d19885d9768747ed0ea9ff 100644
--- a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java
+++ b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/MembersSorterTest.java
@@ -436,6 +436,24 @@ public class MembersSorterTest extends RefactoringImplTest {
assertSorting(initial, expected);
}
+ public void test_unitMembers_mainFirst() throws Exception {
+ String initial = makeSource(//
+ "class C {}",
+ "aaa() {}",
+ "class A {}",
+ "main() {}",
+ "class B {}",
+ "");
+ String expected = makeSource(//
+ "main() {}",
+ "aaa() {}",
+ "class A {}",
+ "class B {}",
+ "class C {}",
+ "");
+ assertSorting(initial, expected);
+ }
+
public void test_unitMembers_mix() throws Exception {
verifyNoTestUnitErrors = false;
String initial = makeSource(//

Powered by Google App Engine
This is Rietveld 408576698