Update text editing tests (flutter/engine#37642)
This commit is contained in:
@@ -2565,10 +2565,9 @@ Future<void> testMain() async {
|
|||||||
expect(input.style.backgroundColor, 'transparent');
|
expect(input.style.backgroundColor, 'transparent');
|
||||||
expect(input.style.caretColor, 'transparent');
|
expect(input.style.caretColor, 'transparent');
|
||||||
expect(input.style.outline, 'none');
|
expect(input.style.outline, 'none');
|
||||||
expect(input.style.border, 'none');
|
expect(input.style.border.split(' '), contains('none'));
|
||||||
expect(input.style.textShadow, 'none');
|
expect(input.style.textShadow, 'none');
|
||||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
});
|
||||||
}, skip: isFirefox);
|
|
||||||
|
|
||||||
test('prevents effect of (forced-colors: active)', () {
|
test('prevents effect of (forced-colors: active)', () {
|
||||||
editingStrategy!.enable(
|
editingStrategy!.enable(
|
||||||
@@ -2579,7 +2578,9 @@ Future<void> testMain() async {
|
|||||||
|
|
||||||
final DomHTMLElement input = editingStrategy!.activeDomElement;
|
final DomHTMLElement input = editingStrategy!.activeDomElement;
|
||||||
expect(input.style.getPropertyValue('forced-color-adjust'), 'none');
|
expect(input.style.getPropertyValue('forced-color-adjust'), 'none');
|
||||||
// TODO(hterkelsen): https://github.com/flutter/flutter/issues/115327
|
// TODO(hterkelsen): Firefox does not support forced-color-adjust even
|
||||||
|
// though it supports forced-colors. Safari doesn't support forced-colors
|
||||||
|
// so this isn't a problem there.
|
||||||
}, skip: isFirefox || isSafari);
|
}, skip: isFirefox || isSafari);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user