| Index: tests/compiler/dart2js/metadata_test.dart
|
| diff --git a/tests/compiler/dart2js/metadata_test.dart b/tests/compiler/dart2js/metadata_test.dart
|
| index 903cbeec3125da51a2a28f1131121420a9caab86..12022f7428c192885c21ffdf754c54b256c1884b 100644
|
| --- a/tests/compiler/dart2js/metadata_test.dart
|
| +++ b/tests/compiler/dart2js/metadata_test.dart
|
| @@ -36,7 +36,7 @@ void checkAnnotation(String name, String declaration,
|
| 'Unexpected metadata count on $element.');
|
| PartialMetadataAnnotation annotation = element.metadata.head;
|
| annotation.ensureResolved(compiler);
|
| - PrimitiveConstant value = annotation.value;
|
| + PrimitiveConstant value = annotation.constant.value;
|
| Expect.stringEquals('xyz', value.value.slowToString());
|
|
|
| checkPosition(annotation, annotation.cachedNode, source1, compiler);
|
| @@ -59,8 +59,8 @@ void checkAnnotation(String name, String declaration,
|
| Expect.isFalse(identical(annotation1, annotation2),
|
| 'expected unique instances');
|
| Expect.notEquals(annotation1, annotation2, 'expected unequal instances');
|
| - PrimitiveConstant value1 = annotation1.value;
|
| - PrimitiveConstant value2 = annotation2.value;
|
| + PrimitiveConstant value1 = annotation1.constant.value;
|
| + PrimitiveConstant value2 = annotation2.constant.value;
|
| Expect.identical(value1, value2, 'expected same compile-time constant');
|
| Expect.stringEquals('xyz', value1.value.slowToString());
|
| Expect.stringEquals('xyz', value2.value.slowToString());
|
| @@ -89,7 +89,7 @@ void checkAnnotation(String name, String declaration,
|
| Expect.equals(1, length(element.metadata));
|
| PartialMetadataAnnotation annotation = element.metadata.head;
|
| annotation.ensureResolved(compiler);
|
| - PrimitiveConstant value = annotation.value;
|
| + PrimitiveConstant value = annotation.constant.value;
|
| Expect.stringEquals('xyz', value.value.slowToString());
|
|
|
| checkPosition(annotation, annotation.cachedNode, source3, compiler);
|
| @@ -118,8 +118,8 @@ void checkAnnotation(String name, String declaration,
|
| Expect.isFalse(identical(annotation1, annotation2),
|
| 'expected unique instances');
|
| Expect.notEquals(annotation1, annotation2, 'expected unequal instances');
|
| - PrimitiveConstant value1 = annotation1.value;
|
| - PrimitiveConstant value2 = annotation2.value;
|
| + PrimitiveConstant value1 = annotation1.constant.value;
|
| + PrimitiveConstant value2 = annotation2.constant.value;
|
| Expect.identical(value1, value2, 'expected same compile-time constant');
|
| Expect.stringEquals('xyz', value1.value.slowToString());
|
| Expect.stringEquals('xyz', value2.value.slowToString());
|
| @@ -171,7 +171,7 @@ void testLibraryTags() {
|
|
|
| PartialMetadataAnnotation annotation = metadata.head;
|
| annotation.ensureResolved(compiler);
|
| - PrimitiveConstant value = annotation.value;
|
| + PrimitiveConstant value = annotation.constant.value;
|
| Expect.stringEquals('xyz', value.value.slowToString());
|
|
|
| checkPosition(annotation, annotation.cachedNode, source, compiler);
|
|
|