Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 03e603b

Browse files
committed
Use a real font-family name in test to not confuse Safari.
1 parent 0ea2d0a commit 03e603b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web_ui/test/engine/host_node_test.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void testMain() {
1616

1717
group('ShadowDomHostNode', () {
1818
final HostNode hostNode =
19-
ShadowDomHostNode(rootNode, '14px font_family_for_testing');
19+
ShadowDomHostNode(rootNode, '14px monospace');
2020

2121
test('Initializes and attaches a shadow root', () {
2222
expect(domInstanceOfString(hostNode.node, 'ShadowRoot'), isTrue);
@@ -65,7 +65,7 @@ void testMain() {
6565

6666
final bool hasFont = hasCssRule(style,
6767
selector: 'flt-scene-host',
68-
declaration: 'font: 14px font_family_for_testing');
68+
declaration: 'font: 14px monospace');
6969

7070
expect(hasColorRed, isTrue,
7171
reason: 'Should make foreground color red within scene host.');

0 commit comments

Comments
 (0)