Skip to content

Commit a7ccd73

Browse files
committed
test(webf): update webf_unit_test cases.
1 parent bf1243e commit a7ccd73

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

webf/test/src/css/inline_style_blink_fastpath_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ void main() {
5252
box.setInlineStyle('fontSize', '-1px');
5353
expect(box.style.getPropertyValue('fontSize'), equals('16px'));
5454

55-
// Native-side (Blink) validated values should bypass Dart validation.
55+
// Native-side (Blink) did not validating inline values thus should not bypass Dart validation.
5656
box.setInlineStyle('fontSize', '-2px', fromNative: true);
57-
expect(box.style.getPropertyValue('fontSize'), equals('-2px'));
57+
expect(box.style.getPropertyValue('fontSize'), equals('16px'));
5858
});
5959

6060
testWidgets('Negative padding from native does not crash layout', (WidgetTester tester) async {
@@ -75,7 +75,8 @@ void main() {
7575

7676
final box = prepared.getElementById('box');
7777
box.setInlineStyle('paddingBottom', '-10px', fromNative: true);
78-
expect(box.style.getPropertyValue('paddingBottom'), equals('-10px'));
78+
// negative paddings are invalid, and should not be set.
79+
expect(box.style.getPropertyValue('paddingBottom'), equals(''));
7980

8081
await tester.pump();
8182
await tester.pump(const Duration(milliseconds: 50));

0 commit comments

Comments
 (0)