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

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

Issue 14205011: Issue 9845. Compare runtime types using ==. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 69e0b16ac37158cebdb4327b7487776b5d568a94..677a88a3177f886db599b1fb2123461cc91b9455 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
@@ -615,21 +615,23 @@ public class ObjectSemanticProcessorTest extends SemanticProcessorTest {
"}");
}
- public void test_PrintWriter_printlnString() throws Exception {
+ public void test_PrintWriter_println() throws Exception {
translateSingleFile(
"// filler filler filler filler filler filler filler filler filler filler",
"package test;",
"import java.io.PrintWriter;",
"public class Test {",
- " public void main(PrintWriter p) {",
- " p.println(\"msg\");",
+ " public void main(PrintWriter p, String s) {",
+ " p.println();",
+ " p.println(s);",
" }",
"}");
runProcessor();
assertFormattedSource(//
"class Test {",
- " void main(PrintWriter p) {",
- " p.printlnObject(\"msg\");",
+ " void main(PrintWriter p, String s) {",
+ " p.newLine();",
+ " p.println(s);",
" }",
"}");
}

Powered by Google App Engine
This is Rietveld 408576698