Commit Graph

825 Commits

Author SHA1 Message Date
Dan Field
473358d93d Revert dispose images when done (#67100)
* Revert "docs for image disposal (#67066)"

This reverts commit bcb2ac5a55.

* Revert "Dispose of images after using them (#66688)"

This reverts commit a7954691da.
2020-10-01 16:53:50 -07:00
Michael Goderbauer
cba170fbb2 Migrate the tests of flutter_test to null-safety (#67058) 2020-10-01 16:27:02 -07:00
Kate Lovett
d1178ae73b Fix local gold output for flutter/flutter (#66139) 2020-10-01 11:17:03 -07:00
Jacob MacDonald
b95c3d7d56 update stack_trace dep (and others) (#67057) 2020-10-01 09:54:07 -07:00
Dan Field
a7954691da Dispose of images after using them (#66688)
* Dispose of images after using them
Adds ImageInfo.clone, ImageInfo.dispose, and ImageInfo.isCloneOf.
Makes all stateful holders of ui.Image objects properly clone and dispose of them.
Behavior change for ImageStreamCompleter: Removing the last listener after registering at least one listener results in the object being disposed, and new listeners cannot be added, unless a keepAlive handle is created.
Makes all non-stateful holders of ui.Image (i.e. paintImage and RawImage) assert that whoever gave the image to them has not disposed it on them.
2020-10-01 09:48:54 -07:00
Michael Goderbauer
19e07d2beb Migrate flutter_test (#66663) 2020-09-30 17:03:40 -07:00
Mehmet Fidanboylu
95d72bf9d8 Clarify the docs on what scrollUntilVisible does (#65817) 2020-09-30 14:58:13 -07:00
Ming Lyu (CareF)
3c321ac80f cleanup (#66743) 2020-09-29 15:32:03 -07:00
Alexandre Ardhuin
c2e43403af apply upcoming lint cast_nullable_to_non_nullable (#66455)
* apply upcoming lint cast_nullable_to_non_nullable

* make RenderObjectElement.renderObject non-nullable
2020-09-27 21:29:42 +02:00
Jacob MacDonald
9cee75ba61 update to the latest null safe packages (#66384)
Updates all null safe dependencies to versions that allow 2.10 stable and 2.11 dev releases.

Also updates flutter_goldens and flutter_goldens_client to allow 2.11 dev.
2020-09-23 11:03:29 -07:00
Dan Field
7eb8447485 Allow new methods to be added to ui.Image for tests (#65876)
Remove fake image implementations, add createTestImage to flutter_test
2020-09-22 11:55:39 -07:00
Yegor
905feb7771 roll source_span 1.8.0-nullsafety.2 (#66290) 2020-09-21 15:02:07 -07:00
Jonah Williams
689ca09cd0 [versions] update to latest source span and roll engine to 4b8477d11573d233e6791204191c0090f733b05d (#66136) 2020-09-19 11:22:07 -07:00
Mouad Debbar
5024e1ea02 [web] Inform the engine when read-only flag is flipped (#65499) 2020-09-17 15:52:04 -07:00
Christian Mürtz
1415078828 Find text containing in tests (#65072) 2020-09-16 16:32:03 -07:00
Michael R Fairhurst
7f3c9b6bda Remove unused 'dart:async' imports. (#65568) 2020-09-16 14:14:06 -07:00
Tong Mu
a48e14308e Expose GestureBinding.handlePointerEvent, replacing dispatchEvent as the preferred way to dispatch events (#64846) 2020-09-15 22:17:06 -07:00
Greg Spencer
199a7c1964 Fix the character field of the RawKeyEvent to hold correct data on non-Android platforms. (#65667)
This fixes a problem where the character field of the RawKeyEvent was not being set at all for non-Android platforms.

I also updated the key maps, and corrected a problem with the Windows key map where the backquote character wasn't correctly mapped.
2020-09-15 13:02:16 -07:00
Yuqian Li
e1eddb401d Revert the revert (#65602) 2020-09-11 16:20:03 -07:00
Alexander Brusher
68660e127c Disables test failing due to new semantics flag. (#65194)
This change disables a failing test prevent PR #20385 from merging.
2020-09-10 16:44:32 -07:00
Ming Lyu (CareF)
28de49e358 Revert "Reland #61998 and update complex_layout ios files (#64885)" (#64990)
This reverts commit df83398687.
2020-08-31 18:47:08 -07:00
Ming Lyu (CareF)
df83398687 Reland #61998 and update complex_layout ios files (#64885) 2020-08-31 17:23:06 -07:00
Shi-Hao Hong
34541c3073 Revert "A benchmark test case for measuring scroll smoothness (#61998)" (#64883)
This reverts commit 12b7355da1.
2020-08-30 18:42:10 +08:00
Ming Lyu (CareF)
12b7355da1 A benchmark test case for measuring scroll smoothness (#61998) 2020-08-29 04:28:03 -07:00
Ian Hickson
8a6a76a334 migrate rendering to nullsafety (#64621) 2020-08-27 16:38:10 -07:00
Jonah Williams
41e553bbfc [flutter_tools] migrate flutter_goldens, flutter_goldens client to null-safety (#64201) 2020-08-24 15:31:05 -07:00
Jonah Williams
04f7c9d52e [flutter_tools] update dwds, roll to null-safe file and process (#64195)
Update to latest dwds, file-nullsafety, and process-nullsafety for #62886
2020-08-19 16:59:52 -07:00
Greg Spencer
041a3eaa84 Standardize the nullability of arguments to raw key data constructors. (#63523)
This standardizes the handling of nullability for the LogicalKeyboardKey.keyLabel and RawKeyEventData.keyLabel accessors so that they are non-nullable, but can be empty.

Before this change, the keyLabel could be either null or an empty string to indicate that there wasn't a label, which makes it harder to test for, since both need to be checked for. Since an empty string is sufficient, there is no need for it to be nullable.

Also, in raw_keyboard.dart, the web and Windows implementations wouldn't accept null values for parameters in the Map coming from the message, but tests were supplying null for some of them. This makes web and Windows creation of events match the other platforms, and makes the migration of tests to non-nullability easier.
2020-08-19 15:03:17 -07:00
Greg Spencer
d1eff0b413 Hook up soft keyboard "next" and "previous" buttons so that they move the focus by default (#63592)
Focus will be moved automatically if onEditingComplete is not specified, but must
by moved manually if onEditingComplete is specified.
2020-08-18 16:46:58 -07:00
Ming Lyu (CareF)
2c716c4d49 add vsync overhead to FrameTimingSummarizer (#63835) 2020-08-17 16:51:04 -07:00
Ming Lyu (CareF)
04759e8559 doc typo spelling fix (#63817) 2020-08-17 12:21:08 -07:00
Jonah Williams
08254b2156 Revert "Remove TODOs added for HTTP abort() change in dart sdk (#63924)" (#63972)
This reverts commit b1c17313f6.
2020-08-17 10:25:01 -07:00
zichangg
b1c17313f6 Remove TODOs added for HTTP abort() change in dart sdk (#63924) 2020-08-17 09:46:08 -07:00
Ming Lyu (CareF)
c2368bdd6f bug fix for pointer id in test gestures (#63816) 2020-08-15 10:41:02 -07:00
Konstantin Scheglov
236507f058 Provide the argument for a required parameter 'data'. (#63728) 2020-08-14 16:46:03 -07:00
Michael Goderbauer
39a46bedad Remove decommission from RestorationBuckets (#63687) 2020-08-13 15:01:04 -07:00
Nils Reichardt
337c5cfc52 Update finders.dart (#63600) 2020-08-13 11:30:34 -07:00
Ming Lyu (CareF)
0629030a05 WidgetTester.drag with time duration (#63410) 2020-08-12 21:01:03 -07:00
Jonah Williams
04bc6123a9 [null-safety] update to several framework test cases/APIs for null assertions (#62946) 2020-08-12 13:41:09 -07:00
LongCatIsLooong
cea055ef00 Make Scrollable's free scroll initial velocity matches that of iOS (#60501) 2020-08-12 13:31:05 -07:00
Ming Lyu (CareF)
b09dee59bf add FrameTimingSummarizer (#63434) 2020-08-11 06:21:04 -07:00
Ming Lyu (CareF)
2965d81ae9 update for WidgetTester.move and WidgetTester.fling doc (#63390) 2020-08-10 21:21:03 -07:00
Panmari
9542a47e44 Fixing code snippet example for meetsGuideline. (#63273) 2020-08-10 21:11:04 -07:00
Hans Muller
73ce3f21d0 Updated old button references in packages/flutter_test (#63230) 2020-08-08 18:20:53 -07:00
Ian Hickson
522d19e2ad Unskip the bidi semantics test. (#62823) 2020-08-05 19:21:11 -07:00
Ming Lyu (CareF)
8081455394 revert widgettester breaking change (#62914) 2020-08-04 17:26:05 -07:00
Jonah Williams
428be90768 [null-safety] revert export of Fake from test_api (#62894) 2020-08-04 14:31:05 -07:00
Ming Lyu (CareF)
a36b0ba4f6 promote WidgetTester pumpAndSettle (#62640) 2020-08-04 08:31:08 -07:00
Ming Lyu (CareF)
e03980ec47 separate scroll until visible implementation for lower level accessibility (#62462) 2020-08-04 08:31:04 -07:00
Jonah Williams
32144161ae [null-safety] remove some usages of mockito (#62809) 2020-08-04 08:26:12 -07:00