Commit Graph

216 Commits

Author SHA1 Message Date
Alexandre Ardhuin
c0176c9ee5 use_is_even_rather_than_modulo (#68301) 2020-10-16 20:20:00 +02:00
Dan Field
12f54e17f4 reland List queue search optimization (#68214)
* Revert "Revert "Improve performance of collectAllElements (#68065)" (#68207)"

This reverts commit 46ff57d6f1.

* use fewer elements for benchmark
2020-10-15 13:46:50 -07:00
Jonah Williams
46ff57d6f1 Revert "Improve performance of collectAllElements (#68065)" (#68207)
This reverts commit 8ba5732c4c.
2020-10-15 08:04:59 -07:00
Dan Field
8ba5732c4c Improve performance of collectAllElements (#68065) 2020-10-14 21:32:04 -07:00
Jonah Williams
ef6c720d40 [flutter_test] handle breaking change to test main (#67425)
* [flutter_test] handle breaking change to test main . Fixes #67382
2020-10-06 16:52:23 -07:00
Michael Goderbauer
8998167d0f Make FlutterErrorDetails.exception non-nullable as documented (#67364) 2020-10-05 18:07:02 -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
Michael Goderbauer
19e07d2beb Migrate flutter_test (#66663) 2020-09-30 17:03:40 -07:00
Christian Mürtz
1415078828 Find text containing in tests (#65072) 2020-09-16 16:32: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)
2c716c4d49 add vsync overhead to FrameTimingSummarizer (#63835) 2020-08-17 16:51:04 -07:00
Ming Lyu (CareF)
c2368bdd6f bug fix for pointer id in test gestures (#63816) 2020-08-15 10:41:02 -07:00
Michael Goderbauer
39a46bedad Remove decommission from RestorationBuckets (#63687) 2020-08-13 15:01:04 -07:00
Ming Lyu (CareF)
0629030a05 WidgetTester.drag with time duration (#63410) 2020-08-12 21:01:03 -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
Hans Muller
73ce3f21d0 Updated old button references in packages/flutter_test (#63230) 2020-08-08 18:20:53 -07:00
Ming Lyu (CareF)
8081455394 revert widgettester breaking change (#62914) 2020-08-04 17:26: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
Ming Lyu (CareF)
d053a4d00a Move key event and semantics related method from WidgetTester to WidgetController (#62362) 2020-07-29 08:11:06 -07:00
Ming Lyu (CareF)
e9e36f3909 WidgetController.pump use optional duration (#62091) 2020-07-29 08:01:04 -07:00
Ming Lyu (CareF)
6d07b1b475 Add WidgetController.scrollUntilVisible (#62097) 2020-07-28 10:46:07 -07:00
Michael Goderbauer
175e5c9aca Restoration Framework (#60375)
* state restoration

* added example

* typos and analyzer

* whitespace

* more typos

* remove unnecessary import

* whitespace

* fix sample code

* tests for restorationmanager and restorationid

* ++

* typo

* tests for bucket, part1

* rename tests

* more tests

* finished tests for service layer

* remove wrong todo

* ++

* review comments

* tests for Unmanaged and regular scope

* RootRestorationScope tests

* typo

* whitespace

* testing framework

* tests for properties

* last set of tests

* analyzer

* typo

* dan review

* whitespace

* ++

* refactor finalizers

* ++

* ++

* dispose guard

* ++

* ++

* dan review

* add manager assert

* ++

* analyzer

* greg review

* fix typo

* Ian & John review

* ian review

* RestorationID -> String

* revert comment

* Make primitives non-nullable in prep for NNBD
2020-07-28 10:16:36 -07:00
Ming Lyu (CareF)
9e2e0ef3b4 implement handlePointerEventRecord for LiveWidgetController (#61266) 2020-07-22 18:31:08 -07:00
Ming Lyu (CareF)
3e7fe378e3 Reland "LiveTestWidgetsFlutterBinding support for non-touch event" (#61901) 2020-07-21 02:36:03 -07:00
Ming Lyu (CareF)
f98a00c750 Revert "LiveTestWidgetsFlutterBinding support for non-touch event (#61872)" (#61900)
This reverts commit aa4b4d35e1.
2020-07-20 17:20:30 -04:00
Ming Lyu (CareF)
aa4b4d35e1 LiveTestWidgetsFlutterBinding support for non-touch event (#61872) 2020-07-20 17:02:59 -04:00
Ming Lyu (CareF)
c9cf9c9940 Promote WidgetTester.ensureVisible to WidgetController (#61540)
* Promtoe WidgetTester.ensureVisible

* modify according to tvolkert@
2020-07-15 14:54:49 -04:00
Ming Lyu (CareF)
a76b5eb79f Add support in WidgetTester for an array of inputs (#60796)
* Add input event array support

* Add a tap test

* remove unused import

* remove extra assert
2020-07-10 17:03:12 -04:00
Ming Lyu (CareF)
61477b5949 Fix PointerAddedEvent handling in LiveTestWidgetsFlutterBinding (#61102)
* Fix PointerAddedEvent handling in tester
2020-07-08 13:28:51 -04:00
Dan Field
fb57edcc80 Revert "Revert "Fix remaining holes in stack trace demangling (#60478)" (#60916)" (#60996)
This reverts commit 2c7e5dd935.
2020-07-07 15:30:32 -07:00
Dan Field
2c7e5dd935 Revert "Fix remaining holes in stack trace demangling (#60478)" (#60916)
This reverts commit d986fdc31a.
2020-07-06 10:07:36 -07:00
Andre
d986fdc31a Fix remaining holes in stack trace demangling (#60478)
* Implement stack trace demangling in the framework.
2020-07-06 08:11:03 -07:00
Michael Goderbauer
769468298b Do not return partial semantics from tester.getSemantics (#60367) 2020-06-26 11:03:02 -07:00
David Worsham
db48cadd0d Remove unused physicalDepth code (#60152) 2020-06-24 11:33:01 -07:00
chunhtai
5623fea53c Reverse the semantics order of modal barrier and modal scope (#59290)
* Add semantics sort key for modal scope and modal barrier

* fix test

* fix test

* fix test

* fix space

* fix more tests

* addressing comments
2020-06-24 10:37:53 -07:00
Dan Field
868c4d8ce0 Fix issue with stack traces getting mangled (#59900) 2020-06-23 15:29:57 -07:00
Dan Field
68b131f313 [e2e] make test bindings friendlier to integration tests (#58210) 2020-05-29 11:50:12 -07:00
cg021
1cfd792a38 remove pending timers list code out of assert message (#57287)
* move pending timers list code out of assert

* style change

Co-authored-by: Emmanuel Garcia <egarciad@google.com>

* add unit tests

* formatting

* pending timer test

* pending timer assertion test

* add setup and teardown

Co-authored-by: Emmanuel Garcia <egarciad@google.com>
2020-05-18 18:18:16 -05:00
Tong Mu
fb94d3fb78 Animation sheet recorder (#55527) 2020-05-14 14:32:03 -07:00
Greg Spencer
c7b10df765 Fix initial value for highlight mode on desktop platforms. (#54306)
This fixes the initial value of FocusManager.highlightMode so that it gets initialized correctly on desktop platforms.

My recent update of this code (#52990) broke things so that the highlight mode never changed from the initial default of touch, which meant that focus highlights didn't show unless you set FocusManager.highlightStrategy to something (even automatic, the default: setting it caused the mode to be updated).
2020-04-10 13:23:55 -07:00
Jacob MacDonald
efdce3cf72 drop image package dependency for goldens (#54144) 2020-04-09 11:21:23 -07:00
Alexandre Ardhuin
f5a9902577 enable avoid_equals_and_hash_code_on_mutable_classes (#52507) 2020-04-06 13:36:01 -07:00
Miguel Beltran
7ff3a50fe7 Set highContrast value from AccessibilityFeatures into MediaQueryData (#48811) 2020-02-26 13:36:02 -08:00
Kate Lovett
52ee8a6c65 Remove highContrast from FakeAccessibilityFeatures (#51130) 2020-02-20 10:28:49 -08:00
Miguel Beltran
d295fbb6a1 Add highContrast to FakeAccessibilityFeatures test (#48486) 2020-02-19 13:26:05 -08:00
Dan Field
b2a27c109c Be clearer about when and why we override HttpClient in tests (#49844) 2020-01-31 09:22:30 -08:00
Dan Field
8b2993337a revert #48985 (#49572) 2020-01-27 14:36:02 -08:00