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

Unified Diff: dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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: dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
diff --git a/dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java b/dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
index 47157e1656692e0fcc50e6b4acb065e16e168361..2e54251616e13f16841e700d567825fb6122ce57 100644
--- a/dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
+++ b/dart/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameTypeProcessorTest.java
@@ -327,28 +327,28 @@ public final class RenameTypeProcessorTest extends RefactoringTest {
}
public void test_OK_multipleUnits_onReference() throws Exception {
- setUnitContent("Test1.dart", new String[] {
+ setUnitContent(
+ "Test1.dart",
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"class Test {",
- "}"});
- setUnitContent("Test2.dart", new String[] {
+ "}");
+ setUnitContent(
+ "Test2.dart",
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"f() {",
" Test test = new Test();",
- "}"});
- setUnitContent("Test3.dart", new String[] {
+ "}");
+ setUnitContent(
+ "Test3.dart",
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"class B extends Test {",
- "}"});
+ "}");
setTestUnitContent(
"// filler filler filler filler filler filler filler filler filler filler",
- "library test;",
- "part 'Test1.dart';",
- "part 'Test2.dart';",
- "part 'Test3.dart';");
+ "#library('test');",
+ "#source('Test1.dart');",
+ "#source('Test2.dart');",
+ "#source('Test3.dart');");
// get units, because they have not library
CompilationUnit unit1 = testProject.getUnit("Test1.dart");
CompilationUnit unit2 = testProject.getUnit("Test2.dart");
@@ -357,22 +357,22 @@ public final class RenameTypeProcessorTest extends RefactoringTest {
Type type = findElement(unit2, "Test test =");
// do rename
renameType(type, "NewName");
- assertUnitContent(unit1, new String[] {
+ assertUnitContent(
+ unit1,
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"class NewName {",
- "}"});
- assertUnitContent(unit2, new String[] {
+ "}");
+ assertUnitContent(
+ unit2,
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"f() {",
" NewName test = new NewName();",
- "}"});
- assertUnitContent(unit3, new String[] {
+ "}");
+ assertUnitContent(
+ unit3,
"// filler filler filler filler filler filler filler filler filler filler",
- "part of test;",
"class B extends NewName {",
- "}"});
+ "}");
}
/**

Powered by Google App Engine
This is Rietveld 408576698