Unverified Commit d5844e8a authored by Yegor's avatar Yegor Committed by GitHub

Enable TextStyle hash test on the Web (#50985)

parent f79963c6
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
import 'dart:ui' as ui show TextStyle, ParagraphStyle, FontFeature, Shadow; import 'dart:ui' as ui show TextStyle, ParagraphStyle, FontFeature, Shadow;
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
import '../flutter_test_alternative.dart'; import '../flutter_test_alternative.dart';
...@@ -262,7 +261,7 @@ void main() { ...@@ -262,7 +261,7 @@ void main() {
const TextStyle b = TextStyle(fontFamilyFallback: <String>['Noto'], shadows: <ui.Shadow>[ui.Shadow()], fontFeatures: <ui.FontFeature>[ui.FontFeature('abcd')]); 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, a.hashCode);
expect(a.hashCode, isNot(equals(b.hashCode))); expect(a.hashCode, isNot(equals(b.hashCode)));
}, skip: kIsWeb); });
test('TextStyle foreground and color combos', () { test('TextStyle foreground and color combos', () {
const Color red = Color.fromARGB(255, 255, 0, 0); const Color red = Color.fromARGB(255, 255, 0, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment