| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java
|
| ===================================================================
|
| --- editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java (revision 40542)
|
| +++ editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/constant/ConstantValueComputerTest.java (working copy)
|
| @@ -35,7 +35,6 @@
|
| import com.google.dart.engine.internal.element.VariableElementImpl;
|
| import com.google.dart.engine.internal.object.DartObjectImpl;
|
| import com.google.dart.engine.internal.object.GenericState;
|
| -import com.google.dart.engine.internal.resolver.TestTypeProvider;
|
| import com.google.dart.engine.internal.resolver.TypeProvider;
|
| import com.google.dart.engine.resolver.ResolverTestCase;
|
| import com.google.dart.engine.source.Source;
|
| @@ -171,7 +170,7 @@
|
| validate(true, ((TopLevelVariableDeclaration) members.get(1)).getVariables());
|
| }
|
|
|
| - public void test_computeValues_empty() {
|
| + public void test_computeValues_empty() throws Exception {
|
| ConstantValueComputer computer = makeConstantValueComputer();
|
| computer.computeValues();
|
| }
|
| @@ -935,9 +934,9 @@
|
| return ((InstanceCreationExpression) expression).getEvaluationResult();
|
| }
|
|
|
| - private ConstantValueComputer makeConstantValueComputer() {
|
| + private ConstantValueComputer makeConstantValueComputer() throws AnalysisException {
|
| return new ValidatingConstantValueComputer(
|
| - new TestTypeProvider(),
|
| + analysisContext.getTypeProvider(),
|
| analysisContext.getDeclaredVariables());
|
| }
|
|
|
|
|