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

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

Issue 22285004: 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 5d3a339a09effe77009ddf0349ddf23ddf85d060..fb023d5d53556fa7ec659a4c6f224b76e54ea7c0 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
@@ -617,9 +617,11 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
"public class Test {",
" public void mainInteger(int p) {",
" Integer.toString(p);",
+ " Integer.toString(p, 16);",
" }",
" public void mainLong(long p) {",
" Long.toString(p);",
+ " Long.toString(p, 16);",
" }",
" public void mainDouble(double p) {",
" Double.toString(p);",
@@ -633,9 +635,11 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
"class Test {",
" void mainInteger(int p) {",
" p.toString();",
+ " p.toRadixString(16);",
" }",
" void mainLong(int p) {",
" p.toString();",
+ " p.toRadixString(16);",
" }",
" void mainDouble(double p) {",
" p.toString();",
@@ -989,6 +993,24 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
"}");
}
+ public void test_Throwable_getCause() throws Exception {
+ translateSingleFile(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "package test;",
+ "public class Test {",
+ " public main(Throwable e) {",
+ " e.getCause();",
+ " }",
+ "}");
+ runProcessor();
+ assertFormattedSource(//
+ "class Test {",
+ " main(Exception e) {",
+ " e.cause;",
+ " }",
+ "}");
+ }
+
public void test_Throwable_getMessage() throws Exception {
translateSingleFile(
"// filler filler filler filler filler filler filler filler filler filler",

Powered by Google App Engine
This is Rietveld 408576698