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

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

Issue 1843473002: Sort analyzer sources (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove generated file and fix misplaced comments Created 4 years, 9 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/incremental_resolver_test.dart
diff --git a/pkg/analyzer/test/generated/incremental_resolver_test.dart b/pkg/analyzer/test/generated/incremental_resolver_test.dart
index 8800865e8e88a095a32029d22e43ad2929371c1c..afd10bf521072b96bdfb40cf0e13df969e9ebe1e 100644
--- a/pkg/analyzer/test/generated/incremental_resolver_test.dart
+++ b/pkg/analyzer/test/generated/incremental_resolver_test.dart
@@ -4775,6 +4775,34 @@ f3() {
''');
}
+ void test_updateFunctionToForLoop() {
+ _resolveUnit(r'''
+class PlayDrag {
+ final List<num> times = new List<num>();
+
+ PlayDrag.start() {}
+
+ void update(num pos) {
+ fo (int i = times.length - 2; i >= 0; i--) {}
+ }
+}
+''');
+
+ _updateAndValidate(
+ r'''
+class PlayDrag {
+ final List<num> times = new List<num>();
+
+ PlayDrag.start() {}
+
+ void update(num pos) {
+ for (int i = times.length - 2; i >= 0; i--) {}
+ }
+}
+''',
+ expectLibraryUnchanged: false);
+ }
+
void test_visibleRange() {
_resolveUnit(r'''
class Test {
@@ -4846,34 +4874,6 @@ class B extends A {}
}
}
- void test_updateFunctionToForLoop() {
- _resolveUnit(r'''
-class PlayDrag {
- final List<num> times = new List<num>();
-
- PlayDrag.start() {}
-
- void update(num pos) {
- fo (int i = times.length - 2; i >= 0; i--) {}
- }
-}
-''');
-
- _updateAndValidate(
- r'''
-class PlayDrag {
- final List<num> times = new List<num>();
-
- PlayDrag.start() {}
-
- void update(num pos) {
- for (int i = times.length - 2; i >= 0; i--) {}
- }
-}
-''',
- expectLibraryUnchanged: false);
- }
-
void _assertCacheResults(
{bool expectLibraryUnchanged: true,
bool expectCachePostConstantsValid: true}) {
@@ -5290,18 +5290,18 @@ class _TestLogger implements logging.Logger {
Object lastException;
Object lastStackTrace;
- void expectNoErrors() {
- if (lastException != null) {
- fail("logged an exception:\n$lastException\n$lastStackTrace\n");
- }
- }
-
@override
void enter(String name) {}
@override
void exit() {}
+ void expectNoErrors() {
+ if (lastException != null) {
+ fail("logged an exception:\n$lastException\n$lastStackTrace\n");
+ }
+ }
+
@override
void log(Object obj) {}
« no previous file with comments | « pkg/analyzer/test/generated/hint_code_test.dart ('k') | pkg/analyzer/test/generated/resolver_test_case.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698