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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java

Issue 23852002: java2dart improvements and new analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
index fb023d5d53556fa7ec659a4c6f224b76e54ea7c0..152339307255a3065303132fb514899bcd9022c9 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/ObjectSemanticProcessorTest.java
@@ -454,16 +454,16 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
"// filler filler filler filler filler filler filler filler filler filler",
"package test;",
"public class Test {",
- " Object o;",
+ " Object p;",
" public boolean equals(Object o) {",
- " return this.equals(o);",
+ " return o instanceof Test && p.equals(((Test) o).p);",
" }",
"}");
runProcessor();
assertFormattedSource(//
"class Test {",
- " Object o;",
- " bool operator ==(Object o) => this == o;",
+ " Object p;",
+ " bool operator ==(Object o) => o is Test && p == ((o as Test)).p;",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698