| 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);
|
|
|