Enable TextStyle hash test on the Web (#50985)

This commit is contained in:
Yegor
2020-02-21 11:26:03 -08:00
committed by GitHub
parent f79963c675
commit d5844e8a4a

View File

@@ -4,7 +4,6 @@
import 'dart:ui' as ui show TextStyle, ParagraphStyle, FontFeature, Shadow;
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart';
import '../flutter_test_alternative.dart';
@@ -262,7 +261,7 @@ void main() {
const TextStyle b = TextStyle(fontFamilyFallback: <String>['Noto'], shadows: <ui.Shadow>[ui.Shadow()], fontFeatures: <ui.FontFeature>[ui.FontFeature('abcd')]);
expect(a.hashCode, a.hashCode);
expect(a.hashCode, isNot(equals(b.hashCode)));
}, skip: kIsWeb);
});
test('TextStyle foreground and color combos', () {
const Color red = Color.fromARGB(255, 255, 0, 0);