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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/cleanup/MigrateCleanUpTest.java

Issue 10910279: Issue 5075. Remove support for 'negate' and 'equals' operators (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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/cleanup/MigrateCleanUpTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/cleanup/MigrateCleanUpTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/cleanup/MigrateCleanUpTest.java
index abe6e4b6892a7656972664f532cccb770918811d..15ec63df22087864f0b23cc78e3c92879fb946d8 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/cleanup/MigrateCleanUpTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/cleanup/MigrateCleanUpTest.java
@@ -17,7 +17,6 @@ import com.google.dart.tools.ui.internal.cleanup.migration.AbstractMigrateCleanU
import com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M1_catch_CleanUp;
import com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M1_get_CleanUp;
import com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M1_library_CleanUp;
-import com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M1_operators_CleanUp;
import com.google.dart.tools.ui.internal.cleanup.migration.Migrate_1M1_optionalNamed_CleanUp;
/**
@@ -93,34 +92,6 @@ public final class MigrateCleanUpTest extends AbstractCleanUpTest {
assertCleanUp(cleanUp, initial, expected);
}
- public void test_1M1_equals() throws Exception {
- ICleanUp cleanUp = new Migrate_1M1_operators_CleanUp();
- String initial = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator equals(other) => false;",
- "}",
- "");
- String expected = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator ==(other) => false;",
- "}",
- "");
- assertCleanUp(cleanUp, initial, expected);
- }
-
- public void test_1M1_equals_noOp() throws Exception {
- ICleanUp cleanUp = new Migrate_1M1_operators_CleanUp();
- String initial = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator ==(other) => false;",
- "}",
- "");
- assertNoFix(cleanUp, initial);
- }
-
public void test_1M1_getter() throws Exception {
ICleanUp cleanUp = new Migrate_1M1_get_CleanUp();
String initial = makeSource(
@@ -220,34 +191,6 @@ public final class MigrateCleanUpTest extends AbstractCleanUpTest {
assertCleanUp(cleanUp, initial, expected);
}
- public void test_1M1_negate() throws Exception {
- ICleanUp cleanUp = new Migrate_1M1_operators_CleanUp();
- String initial = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator negate() => this;",
- "}",
- "");
- String expected = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator -() => this;",
- "}",
- "");
- assertCleanUp(cleanUp, initial, expected);
- }
-
- public void test_1M1_negate_noOp() throws Exception {
- ICleanUp cleanUp = new Migrate_1M1_operators_CleanUp();
- String initial = makeSource(
- "// filler filler filler filler filler filler filler filler filler filler",
- "class A {",
- " operator -() => this;",
- "}",
- "");
- assertNoFix(cleanUp, initial);
- }
-
public void test_1M1_optionalNamed_noOp_alreadyNewSyntax() throws Exception {
ICleanUp cleanUp = new Migrate_1M1_optionalNamed_CleanUp();
String initial = makeSource(

Powered by Google App Engine
This is Rietveld 408576698