Remove default expectation for UserTag (#86877)

See: https://github.com/flutter/engine/pull/27646#issuecomment-885035046
This commit is contained in:
Kaushik Iska
2021-07-23 15:28:05 -04:00
committed by GitHub
parent 9314654f00
commit aeaadc5691

View File

@@ -12,7 +12,11 @@ void main() {
test('first frame callback sets the default UserTag', () {
final WidgetsBinding binding = WidgetsFlutterBinding.ensureInitialized();
expect(developer.getCurrentTag().label, equals('Default'));
// TODO(iskakaushik): https://github.com/flutter/flutter/issues/86947
final String userTag = developer.getCurrentTag().label;
final bool isValid = <String>{'Default', 'AppStartUp'}.contains(userTag);
expect(isValid, equals(true));
developer.UserTag('test tag').makeCurrent();
expect(developer.getCurrentTag().label, equals('test tag'));