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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java

Issue 11364020: Issue 5722. Better 'missing part of' error message. Quick Fix for it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java
index fd92391214089030f6a1ec0cbc00769567818d01..929e0644fd0abe69bf9598d2db47429e36941fec 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/correction/QuickFixProcessorTest.java
@@ -42,6 +42,28 @@ public final class QuickFixProcessorTest extends AbstractDartTest {
private String proposalNamePrefix;
+ public void test_addPartOf() throws Exception {
+ proposalNamePrefix = "Add \"part of\" directive";
+ setUnitContent("Lib.dart", new String[] {
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "library MyApp;",
+ "part 'Test.dart';",
+ ""});
+ setTestUnitContent(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ "}",
+ "");
+ assertQuickFix(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "",
+ "part of MyApp;",
+ "",
+ "main() {",
+ "}",
+ "");
+ }
+
public void test_createClass() throws Exception {
proposalNamePrefix = "Create class";
setTestUnitContent(
@@ -603,7 +625,6 @@ public final class QuickFixProcessorTest extends AbstractDartTest {
"");
}
- // XXX
public void test_unresolvedFunction_useSimilar_qualified_fromClass() throws Exception {
proposalNamePrefix = "Change to";
setTestUnitContent(
« no previous file with comments | « editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698