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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java

Issue 11340033: Issue 5847. Parse incomplete function expression without body (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use skipTypeName() Created 8 years, 2 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
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
index 1e7fcb6c602291037a16d06baaf1ae2662a30a86..81480c0b21aa9b391ef3ea116326ccc1110f22e2 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/completion/CompletionEngineTest.java
@@ -711,6 +711,16 @@ public class CompletionEngineTest extends TestCase {
test("class Foo {this.!1}", "1-Object");
}
+ public void testCommentSnippets082() throws Exception {
+ String source = Joiner.on("\n").join(
+ "class HttpRequest {}",
+ "class HttpResponse {}",
+ "main() {",
+ " var v = (HttpRequest req, HttpResp!1)",
+ "}");
+ test(source, "1+HttpResponse");
+ }
+
public void testCompletion_alias_field() throws Exception {
// fails because test framework does not set compilation unit
// tests cannot check completion of any type defined in the test
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698