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

Unified Diff: editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/BeautifySemanticProcessorTest.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/BeautifySemanticProcessorTest.java
diff --git a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/BeautifySemanticProcessorTest.java b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/BeautifySemanticProcessorTest.java
index d0e8c1c86e7c8b1a17f2077720e843bb8c5365ef..edaa956d0250a006009eec73a57b3ebebabbba0f 100644
--- a/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/BeautifySemanticProcessorTest.java
+++ b/editor/util/plugins/com.google.dart.java2dart_test/src/com/google/dart/java2dart/processor/BeautifySemanticProcessorTest.java
@@ -41,6 +41,7 @@ public class BeautifySemanticProcessorTest extends SemanticProcessorTest {
" print(-(Integer) p);",
" print((Integer) p + 1);",
" print((Integer) p - 1);",
+ " print(((42)));",
" Object v = (Integer) p;",
" v = (Integer) p;",
" }",
@@ -58,10 +59,11 @@ public class BeautifySemanticProcessorTest extends SemanticProcessorTest {
assertFormattedSource(
"class A {",
" void main(Object p) {",
- " print((p as int));",
+ " print(p as int);",
" print(-(p as int));",
" print((p as int) + 1);",
" print((p as int) - 1);",
+ " print(42);",
" Object v = p as int;",
" v = p as int;",
" }",

Powered by Google App Engine
This is Rietveld 408576698