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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/object/DartObjectImplTest.java

Issue 459703002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: 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}.

Powered by Google App Engine
This is Rietveld 408576698