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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java

Issue 186153005: New analzyer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java
index 02b36fe8b9cc3910d0c269cd2665fba484bb28ac..1fcc7563eb17be5ded756eac1a2959958a065eb8 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/visitor/NodeLocatorTest.java
@@ -32,7 +32,7 @@ public class NodeLocatorTest extends ParserTestCase {
public void test_searchWithin_offset() throws Exception {
CompilationUnit unit = parseCompilationUnit("library myLib;");
- assertLocate(unit, 10, SimpleIdentifier.class);
+ assertLocate(unit, 10, 10, SimpleIdentifier.class);
}
public void test_searchWithin_offsetAfterNode() throws Exception {
@@ -49,11 +49,6 @@ public class NodeLocatorTest extends ParserTestCase {
assertNull(node);
}
- private void assertLocate(CompilationUnit unit, int offset, Class<?> expectedClass)
- throws Exception {
- assertLocate(unit, offset, offset, expectedClass);
- }
-
private void assertLocate(CompilationUnit unit, int start, int end, Class<?> expectedClass)
throws Exception {
NodeLocator locator = new NodeLocator(start, end);

Powered by Google App Engine
This is Rietveld 408576698