File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments