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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/LibraryParserTest.java

Issue 10827286: Fix for issue 4429 - remove #resource directive (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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: compiler/javatests/com/google/dart/compiler/parser/LibraryParserTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/LibraryParserTest.java (revision 10526)
+++ compiler/javatests/com/google/dart/compiler/parser/LibraryParserTest.java (working copy)
@@ -123,27 +123,6 @@
assertHasNative(unit, "impl.js");
}
- public void testResource() {
- //"library { import = ['foo.lib', 'bar.lib'] source = ['this.dart', 'that.dart'] resource = [ 'some.html', 'myimage.gif' ] }";
- String text =
- "#library(\"testLibrary\");\n"
- + "#import(\"foo.dart\");\n"
- + "#import(\"bar.dart\");\n"
- + "#source(\"this.dart\");\n"
- + "#source(\"that.dart\");\n"
- + "#resource(\"some.html\");\n"
- + "#resource(\"myimage.gif\");\n";
-
- LibraryUnit unit = parse(text);
-
- assertHasImport(unit, "foo.dart");
- assertHasImport(unit, "bar.dart");
- assertHasSource(unit, "this.dart");
- assertHasSource(unit, "that.dart");
- assertHasResource(unit, "some.html");
- assertHasResource(unit, "myimage.gif");
- }
-
private void assertHasImport(LibraryUnit unit, String name) {
assertHas(unit.getImportPaths(), name);
}
@@ -156,10 +135,6 @@
assertHas(unit.getSourcePaths(), name);
}
- private void assertHasResource(LibraryUnit unit, String name) {
- assertHas(unit.getResourcePaths(), name);
- }
-
private void assertHasNative(LibraryUnit unit, String name) {
assertHas(unit.getNativePaths(), name);
}

Powered by Google App Engine
This is Rietveld 408576698