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

Commit eedb93e

Browse files
author
Harry Terkelsen
authored
Update text editing tests (#37642)
1 parent c6e5564 commit eedb93e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/web_ui/test/text_editing_test.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,10 +2565,9 @@ Future<void> testMain() async {
25652565
expect(input.style.backgroundColor, 'transparent');
25662566
expect(input.style.caretColor, 'transparent');
25672567
expect(input.style.outline, 'none');
2568-
expect(input.style.border, 'none');
2568+
expect(input.style.border.split(' '), contains('none'));
25692569
expect(input.style.textShadow, 'none');
2570-
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
2571-
}, skip: isFirefox);
2570+
});
25722571

25732572
test('prevents effect of (forced-colors: active)', () {
25742573
editingStrategy!.enable(
@@ -2579,7 +2578,9 @@ Future<void> testMain() async {
25792578

25802579
final DomHTMLElement input = editingStrategy!.activeDomElement;
25812580
expect(input.style.getPropertyValue('forced-color-adjust'), 'none');
2582-
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
2581+
// TODO(hterkelsen): Firefox does not support forced-color-adjust even
2582+
// though it supports forced-colors. Safari doesn't support forced-colors
2583+
// so this isn't a problem there.
25832584
}, skip: isFirefox || isSafari);
25842585
});
25852586
}

0 commit comments

Comments
 (0)