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

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

Issue 11366078: Report error for deprecated #library #import #source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/refactoring/RenameFieldProcessorTest.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameFieldProcessorTest.java b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameFieldProcessorTest.java
index eea4b4ac40054ad145085434a5319582bfedca16..86c2f7dee61afea467e6dfc978ca674bc5d36af9 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameFieldProcessorTest.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui_test/src/com/google/dart/tools/ui/refactoring/RenameFieldProcessorTest.java
@@ -158,7 +158,7 @@ public final class RenameFieldProcessorTest extends RefactoringTest {
*/
public void test_OK_addUnderscore_otherLibrary() throws Exception {
setTestUnitContent(
- "#library('Test');",
+ "library Test;",
"// filler filler filler filler filler filler filler filler filler filler",
"class A {",
" int test = 1;",
@@ -169,8 +169,8 @@ public final class RenameFieldProcessorTest extends RefactoringTest {
"}",
"");
setUnitContent("User.dart", new String[] {
- "#library('User');",
- "#import('Test.dart');",
+ "library User;",
+ "import 'Test.dart';",
"// filler filler filler filler filler filler filler filler filler filler",
"f2() {",
" A a = new A();",
@@ -190,7 +190,7 @@ public final class RenameFieldProcessorTest extends RefactoringTest {
"Renamed field will become private, so will be not visible in library 'Test/User.dart'",
showStatusMessages.get(0));
assertTestUnitContent(
- "#library('Test');",
+ "library Test;",
"// filler filler filler filler filler filler filler filler filler filler",
"class A {",
" int _newName = 1;",
@@ -201,8 +201,8 @@ public final class RenameFieldProcessorTest extends RefactoringTest {
"}",
"");
assertUnitContent(userUnit, new String[] {
- "#library('User');",
- "#import('Test.dart');",
+ "library User;",
+ "import 'Test.dart';",
"// filler filler filler filler filler filler filler filler filler filler",
"f2() {",
" A a = new A();",

Powered by Google App Engine
This is Rietveld 408576698