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

Unified Diff: pkg/analysis_server/test/integration/analysis/outline_test.dart

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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/analysis_server/test/integration/analysis/outline_test.dart
diff --git a/pkg/analysis_server/test/integration/analysis/outline_test.dart b/pkg/analysis_server/test/integration/analysis/outline_test.dart
index 6fd80d716f0ee5da88b3ca31e362d5176cbe64de..35978357bac2bf7098a15a3408bc81a2119d5f20 100644
--- a/pkg/analysis_server/test/integration/analysis/outline_test.dart
+++ b/pkg/analysis_server/test/integration/analysis/outline_test.dart
@@ -10,12 +10,28 @@ import 'package:unittest/unittest.dart';
import '../../reflective_tests.dart';
import '../integration_tests.dart';
+main() {
+ runReflectiveTests(Test);
+}
+
@ReflectiveTestCase()
class Test extends AbstractAnalysisServerIntegrationTest {
+ /**
+ * Verify that the range of source text covered by the given outline objects
+ * is connected (the end of each object in the list corresponds to the start
+ * of the next).
+ */
+ void checkConnected(List<Outline> outlineObjects) {
+ for (int i = 0; i < outlineObjects.length - 1; i++) {
+ expect(
+ outlineObjects[i + 1].offset,
+ equals(outlineObjects[i].offset + outlineObjects[i].length));
+ }
+ }
+
test_outline() {
String pathname = sourcePath('test.dart');
- String text =
- r'''
+ String text = r'''
class Class1 {
int field;
@@ -65,20 +81,4 @@ class Class2 {
checkConnected(members);
});
}
-
- /**
- * Verify that the range of source text covered by the given outline objects
- * is connected (the end of each object in the list corresponds to the start
- * of the next).
- */
- void checkConnected(List<Outline> outlineObjects) {
- for (int i = 0; i < outlineObjects.length - 1; i++) {
- expect(outlineObjects[i + 1].offset, equals(outlineObjects[i].offset
- + outlineObjects[i].length));
- }
- }
-}
-
-main() {
- runReflectiveTests(Test);
}

Powered by Google App Engine
This is Rietveld 408576698