| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java
|
| index 0695c3c6d9f5f8b885ed7198901fafa7fc558453..367fa8da8faebc4f2a6e6cd96c6b41105899f85f 100644
|
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java
|
| @@ -16,6 +16,7 @@ package com.google.dart.engine.internal.object;
|
| import com.google.dart.engine.EngineTestCase;
|
| import com.google.dart.engine.internal.resolver.TestTypeProvider;
|
| import com.google.dart.engine.internal.resolver.TypeProvider;
|
| +import com.google.dart.engine.utilities.translation.DartBlockBody;
|
|
|
| import java.math.BigInteger;
|
| import java.util.HashMap;
|
| @@ -360,14 +361,14 @@ public class DartObjectImplTest extends EngineTestCase {
|
|
|
| public void test_getValue_list_empty() {
|
| Object result = listValue().getValue();
|
| - assertInstanceOf(Object[].class, result);
|
| + assertInstanceOfObjectArray(result);
|
| Object[] array = (Object[]) result;
|
| assertLength(0, array);
|
| }
|
|
|
| public void test_getValue_list_valid() {
|
| Object result = listValue(intValue(23)).getValue();
|
| - assertInstanceOf(Object[].class, result);
|
| + assertInstanceOfObjectArray(result);
|
| Object[] array = (Object[]) result;
|
| assertLength(1, array);
|
| }
|
| @@ -1605,6 +1606,11 @@ public class DartObjectImplTest extends EngineTestCase {
|
| }
|
| }
|
|
|
| + @DartBlockBody({"// TODO(scheglov) implement"})
|
| + private void assertInstanceOfObjectArray(Object result) {
|
| + assertInstanceOf(Object[].class, result);
|
| + }
|
| +
|
| /**
|
| * Assert that the result of dividing the left and right operands as integers is the expected
|
| * value, or that the operation throws an exception if the expected value is {@code null}.
|
|
|