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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java

Issue 11060014: Issue 5621. Fix for infinite cycle during incomplete switch parsing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
index 59d5a2c36477b8624b36329f9f6ed0829762822c..0776efad6729fc7050054353955728a61ea28b65 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
@@ -876,26 +876,6 @@ public final class ExtractMethodRefactoringTest extends RefactoringTest {
}
}
- public void test_bad_switch_switchMember() throws Exception {
- setTestUnitContent(
- "// filler filler filler filler filler filler filler filler filler filler",
- "main() {",
- " switch (0) ",
- "// start",
- " switch (0) {}",
- "// end",
- " } ",
- "}",
- "");
- setSelectionFromStartEndComments();
- createRefactoring();
- assertTrue(refactoringStatus.hasFatalError());
- {
- String msg = refactoringStatus.getMessageMatchingSeverity(RefactoringStatus.FATAL);
- assertEquals(RefactoringCoreMessages.StatementAnalyzer_switch_statement, msg);
- }
- }
-
public void test_bad_tokensBetweenLastNodeAndSelectionEnd() throws Exception {
setTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698