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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_test.dart

Issue 2037973003: Fix resynthesis tests after dead code detection improvements. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/resynthesize_test.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_test.dart b/pkg/analyzer/test/src/summary/resynthesize_test.dart
index eea778b310185fbb53f1d66ce886671e71a6761e..7e682a9bf25c43f04f9e0254a64f68fa6f61aea4 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_test.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_test.dart
@@ -3652,7 +3652,8 @@ get g {
}
test_localLabels_inConstructor() {
- checkLibrary(r'''
+ checkLibrary(
+ r'''
class C {
C() {
aaa: while (true) {}
@@ -3662,11 +3663,13 @@ class C {
}
}
}
-''');
+''',
+ allowErrors: true);
}
test_localLabels_inMethod() {
- checkLibrary(r'''
+ checkLibrary(
+ r'''
class C {
m() {
aaa: while (true) {}
@@ -3676,11 +3679,13 @@ class C {
}
}
}
-''');
+''',
+ allowErrors: true);
}
test_localLabels_inTopLevelFunction() {
- checkLibrary(r'''
+ checkLibrary(
+ r'''
main() {
aaa: while (true) {}
bbb: switch (42) {
@@ -3688,7 +3693,8 @@ main() {
break;
}
}
-''');
+''',
+ allowErrors: true);
}
test_localVariables_inConstructor() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698