Index: pkg/front_end/test/scanner_test.dart |
diff --git a/pkg/front_end/test/scanner_test.dart b/pkg/front_end/test/scanner_test.dart |
index 479c40ec9f92cb3be395576163b7eef75e1b174c..b1bcdb290b86f9773c875f9cde38b646f9f99f65 100644 |
--- a/pkg/front_end/test/scanner_test.dart |
+++ b/pkg/front_end/test/scanner_test.dart |
@@ -165,12 +165,16 @@ abstract class ScannerTestBase { |
_assertToken(TokenType.AMPERSAND_EQ, "&="); |
} |
- void test_angle_brackets_are_ordinary_tokens() { |
- // Analyzer's token streams don't consider "<" to be an opener. |
- var lessThan = _scan('<>'); |
- var greaterThan = lessThan.next; |
+ void test_angle_brackets() { |
+ var lessThan = _scan('<String>'); |
+ var identifier = lessThan.next; |
+ var greaterThan = identifier.next; |
expect(greaterThan.next.type, TokenType.EOF); |
- expect(lessThan, isNot(new isInstanceOf<BeginToken>())); |
+ // Analyzer's token streams don't consider "<" to be an opener |
+ // but fasta does. |
+ if (lessThan is BeginToken) { |
+ expect(lessThan.endToken, greaterThan); |
+ } |
expect(greaterThan, isNot(new isInstanceOf<BeginToken>())); |
} |