| Index: editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
|
| index 8d9af2073593f92ab2baaab1f7445e4608358557..d9c2310fdc5a31abf81640ea54416490f11aaf7f 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/ExtractMethodRefactoringTest.java
|
| @@ -878,6 +878,30 @@ public final class ExtractMethodRefactoringTest extends RefactoringTest {
|
| "");
|
| }
|
|
|
| + public void test_singleExpression_cascade() throws Exception {
|
| + setTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "dynaFunction() {}",
|
| + "main() {",
|
| + " String s = '';",
|
| + " var v = s..length; // marker",
|
| + "}",
|
| + "");
|
| + selectionStart = findOffset("s..");
|
| + selectionEnd = findOffset("; // marker");
|
| + doSuccessfullRefactoring();
|
| + assertTestUnitContent(
|
| + "// filler filler filler filler filler filler filler filler filler filler",
|
| + "dynaFunction() {}",
|
| + "main() {",
|
| + " String s = '';",
|
| + " var v = res(s); // marker",
|
| + "}",
|
| + "",
|
| + "String res(String s) => s..length;",
|
| + "");
|
| + }
|
| +
|
| public void test_singleExpression_Dynamic() throws Exception {
|
| setTestUnitContent(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
|
|