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

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

Issue 175453002: Issue 17007. Show 'Split && condition' only for && operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/QuickAssistProcessorImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImplTest.java b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImplTest.java
index a1df70eff03500b4ae736a5f2fc63f85cc5c5eb2..389a8bafe3bdbbcc29632bad6e6405fe683d60dc 100644
--- a/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImplTest.java
+++ b/editor/tools/plugins/com.google.dart.engine.services_test/src/com/google/dart/engine/services/internal/correction/QuickAssistProcessorImplTest.java
@@ -1759,6 +1759,18 @@ public class QuickAssistProcessorImplTest extends RefactoringImplTest {
}
}
+ public void test_splitAndCondition_wrong_notAnd() throws Exception {
+ String initial = makeSource(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ " if (1 == 1 || 2 == 2) {",
+ " print(0);",
+ " }",
+ "}");
+ // not &&
+ assert_splitAndCondition_wrong(initial, "|| 2 == 2");
+ }
+
public void test_splitAndCondition_wrong_notPartOfIf() throws Exception {
String initial = makeSource(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698