Skip to content

Commit

Permalink
clean up type_literal_test
Browse files Browse the repository at this point in the history
[email protected]

Change-Id: Id8eebf4893103b187e981ccaf6c671ccdf659824
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107690
Reviewed-by: Stephen Adams <[email protected]>
Commit-Queue: Stephen Adams <[email protected]>
  • Loading branch information
rakudrama authored and [email protected] committed Jun 29, 2019
1 parent 0f20911 commit 000cf05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/language_2/type_literal_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ void testType(Type type, Object expectedToStringValues) {
String text = type.toString();

// dart2js minified names should be tagged. We can still test types that don't
// contains minified names.
// contain minified names.
if (text.contains('minified:')) return;

if (expectedToStringValues is List) {
var s = type.toString();
Expect.isTrue(expectedToStringValues.contains(text),
'type `$type`.toString() should be one of: $expectedToStringValues.');
} else {
Expand Down

0 comments on commit 000cf05

Please sign in to comment.