Dan Field
3eb40925e5
Always test semantics ( #35110 )
...
Default `semanticsEnabled` to true for `testWidgets` and fix associated bugs
2019-06-28 12:40:23 -07:00
Tong Mu
94dbdcba73
benchmarkWidgets.semanticsEnabled default false. ( #35280 )
...
In order not to break existing benchmarks.
2019-06-28 11:03:16 -07:00
Tong Mu
03ed06f44d
New benchmark: Gesture semantics ( #35232 )
...
* Add semanticsEnabled to widgetBenchmark
* Add button_matrix_app and gesture benchmark
2019-06-28 00:37:01 -07:00
Alexandre Ardhuin
c7408be181
prepare for lint update of prefer_final_fields ( #35059 )
2019-06-25 19:39:34 +02:00
Ian Hickson
f31fc1bd0f
More removing of timeouts. ( #33932 )
2019-06-12 23:12:35 -07:00
sjindel-google
f83df74b6b
Don't print warning message when running benchmarks test. ( #33842 )
...
# Description
Currently the benchmarks test prints a scary warning message, even when it passes, that a benchmark is being run with asserts enabled.
Normally we don't want developers to do this, because the performance of code with asserts is not characteristic of what end-users will experience. However, we need to unit-test benchmarkWidgets, so I've added a contraindicated option to suppress the warning for the test.
# Related Issues
25049 (comment)
2019-06-06 19:39:32 +02:00
Todd Volkert
323373d333
Add blank newline after Dartdoc bulleted list. ( #33403 )
...
This also fixes up some indentation in some
bulleted lists.
https://github.com/dart-lang/dartdoc/issues/1969
2019-05-27 12:27:28 -07:00
Alexandre Ardhuin
bfa1d25bf9
some formatting of map, parameters and spaces ( #29760 )
2019-03-23 00:02:21 +01:00
Dan Field
8e14c227eb
Make it easier to ensure semantics in widgetTests ( #29387 )
...
* Make it easier to ensure semantics
2019-03-18 10:08:23 -07:00
Alexandre Ardhuin
440ce8fde6
Fix indentations of statements in BlockFunctionBody ( #28933 )
...
* fix indentof statements in BlockFunctionBody
* fix indentof statements in BlockFunctionBody in tests
2019-03-07 21:09:28 +01:00
TruongSinh Tran-Nguyen
0c7fe40e37
fix #19175 How should addTime be used from a test? ( #25202 )
2019-03-06 15:32:33 -08:00
Phil Quitslund
802eca29d2
set literal conversions ( #27811 )
2019-03-06 11:05:16 -08:00
Alexandre Ardhuin
387f885481
Add missing trailing commas ( #28673 )
...
* add trailing commas on list/map/parameters
* add trailing commas on Invocation with nb of arg>1
* add commas for widget containing widgets
* add trailing commas if instantiation contains trailing comma
* revert bad change
2019-03-01 08:17:55 +01:00
Anthony
338581b866
add await to fix analyzer ( #28157 )
2019-02-28 19:17:18 -05:00
Alexandre Ardhuin
5169ab5974
format parameter list ( #27261 )
2019-02-21 09:27:07 +01:00
Konstantin Scheglov
39289b83ac
Update additionalTime in TestWidgetsFlutterBinding.runAsync() to 1000. ( #27256 )
2019-01-30 07:31:00 -08:00
Dan Field
bb5663d2d8
Add docs and sample for takeException ( #27140 )
...
* Add docs and sample for takeException
* fix sample
2019-01-27 09:43:09 -08:00
sjindel-google
4881777203
Fix behavior of handleDrawFrame() in benchmark mode. ( #25049 )
2019-01-22 11:46:14 +01:00
Alexandre Ardhuin
868ff42821
fix doc-comment snippets ( #25579 )
2019-01-07 21:44:16 +01:00
Jonah Williams
f30029bae1
Run flutter tests through mini test engine when run directly (flutter run -t test_file) ( #24930 )
2018-12-12 12:51:16 -08:00
Jonah Williams
9ecb4ce9a6
remove deprecated testing members ( #24115 )
2018-11-09 10:05:11 -08:00
Jonah Williams
a43e3a4a2f
Retry remove package:test from flutter ( #24007 )
2018-11-06 10:48:34 -08:00
Jonah Williams
23a7535a39
Revert "Remove package:test dependency from flutter_test ( #23755 )" ( #24004 )
...
This reverts commit 71e9bd6f25
.
2018-11-06 09:12:48 -08:00
Jonah Williams
71e9bd6f25
Remove package:test dependency from flutter_test ( #23755 )
2018-11-06 08:39:27 -08:00
Dinesh Ahuja
7fbb5b9f32
Create WidgetTester.ensureVisible(Finder) ( #22620 )
...
This is just a shorthand for
Scrollable.ensureVisible(tester.element(finder))
Fixes #8185
2018-10-18 12:17:47 -07:00
Alexandre Ardhuin
0fb84e96c7
Prefer void to null ( #22977 )
...
* Future<void> main
* Future<void>.delayed
* prefer_void_to_Null
* address review comments
2018-10-16 22:03:06 +02:00
Alexandre Ardhuin
0e76cb4c10
prefer_void_to_null in flutter_test ( #22847 )
...
* prefer_void_to_null in flutter_test
* fix CI
2018-10-11 18:00:46 +02:00
Jonah Williams
cdf1cec902
add ability to match child semantics data ( #22001 )
2018-10-05 17:44:26 -07:00
Alexandre Ardhuin
f62afdcf57
add missing type parameter on methods ( #22096 )
2018-10-01 21:29:08 +02:00
Alexandre Ardhuin
a07d3719a1
enable lint prefer_generic_function_type_aliases ( #21680 )
2018-09-14 21:06:19 +02:00
Alexandre Ardhuin
d927c93310
Unnecessary new ( #20138 )
...
* enable lint unnecessary_new
* fix tests
* fix tests
* fix tests
2018-09-12 08:29:29 +02:00
xster
c418b2f328
Auto populate nav bar title and previous from page route ( #19637 )
2018-08-23 18:24:30 -07:00
Ian Hickson
35346b4966
Increase verbosity on bots during setup and other minor cleanup ( #19526 )
...
The verbosity change is to help track down timeouts that currently look like:
```
C:\Windows\Temp\flutter sdk>call bin\flutter.bat config --no-analytics
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine c5a63d28bf3735569c8187753bc490d8351a8363...
Unzipping Dart SDK...
Updating flutter tool...
```
2018-07-20 11:01:45 -07:00
Greg Spencer
1cc036519c
Removes trailing whitespace from source files. ( #19329 )
2018-07-19 23:03:58 -07:00
Jonah Williams
41646c9579
Add new matcher and utility methods for testing semanics ( #19046 )
2018-07-09 15:21:46 -07:00
Ian Hickson
b44784b429
Clear the keyboard state in the test framework when keyboard is closed. ( #18615 )
2018-06-26 15:11:37 -07:00
Ian Hickson
6599271bf5
Revert matcher package ( #18614 )
...
The new matcher package deprecates isInstanceOf which seems eggregious.
2018-06-19 17:22:56 -07:00
Chris Bracken
2ae48845a8
Revert elimination of Dart 1 ( #18460 )
...
fuchsia_tester.dart still assumes Dart 1. Previously, it ran tests directly
from source, flutter_platform.dart automatically runs a kernel compile when
operating in Dart 2 mode, but this assumes a functional Dart SDK is available
in the artifacts directly, and fuchsia_tester.dart mocks out the artifacts
directory with an empty temp dir.
Remaining work is:
1. Get the frontend server building as a dependency on Fuchsia.
2. Patch fuchsia_tester.dart to use a valid Dart SDK and frontend server.
This also reverts migration to Dart 2 typedef syntax.
This reverts commit 6c56bb2
. (#18362 )
This reverts commit 3daebd0
. (#18316 )
2018-06-13 12:46:39 -07:00
Ian Hickson
dac2ebf0c0
More flexible timeout logic in flutter_test ( #18256 )
...
This should reduce the number of flakes without actually increasing
the timeout, so we'll still find out quickly if a test is hanging.
The numbers here might need tweaking. Maybe the default two seconds is
too short for CI bots.
2018-06-11 16:28:01 -07:00
Greg Spencer
6c56bb2420
Update typedef syntax to use Function notation and turn on lint for old notation. ( #18362 )
...
Now that Dart 1 is turned off, reapplying my change to turn on the prefer_generic_function_type_aliases analysis option, and fix all the typedefs to Dart 2 preferred syntax.
Also eliminated the unused analysis_options_repo.yaml file and turned on public_member_api_docs in analysys_options.yaml.
No logic changes, just changing the typedef syntax for all typedefs, and updating analysis options.
2018-06-11 15:51:45 -07:00
Michael Goderbauer
12eeb94c89
Compare SemanticsHandler# at end of test to value at beginning of test ( #18183 )
2018-06-05 12:24:56 -07:00
Alexandre Ardhuin
09276bea25
enable lint prefer_equal_for_default_values ( #18156 )
2018-06-05 08:50:40 +02:00
Greg Spencer
b921fdc58e
Revert "Update typedef syntax to use Function notation and turn on lint for old notation. ( #18035 )" ( #18041 )
...
This reverts commit 3258602073
.
2018-05-30 13:51:14 -07:00
Greg Spencer
3258602073
Update typedef syntax to use Function notation and turn on lint for old notation. ( #18035 )
...
Fixes #18028
Just changes typedef declarations, no logic changes.
2018-05-30 12:13:58 -07:00
Danny Tuppeny
514701fe46
Remove test group in favour of addTearDown ( #17962 )
2018-05-28 21:45:56 +01:00
Konstantin Scheglov
eba194f776
Mark testWidgets() and testUsingContext() with @isTest. ( #17772 )
2018-05-21 11:11:23 -07:00
Ian Hickson
ca94bfdfc6
Factor our common Paint-building code used with BoxShadow ( #17363 )
2018-05-09 22:42:38 -07:00
Todd Volkert
dedd180f9f
Fix expectLater to not wrap the delegate in a guard ( #17085 )
...
Follow-up to https://github.com/flutter/flutter/pull/17063
https://github.com/flutter/flutter/issues/16859
2018-04-30 10:05:04 -07:00
Todd Volkert
8860627b63
Add WidgetTester.runAsync() ( #17029 )
...
This will allow callers to run real async code within a widget test.
https://github.com/flutter/flutter/issues/16859
2018-04-28 15:14:46 -07:00
Todd Volkert
8b99d1d83c
Add expectLater
to flutter_test ( #17063 )
...
* Wrap `expectLater()` in flutter_tester so that callers can
wait for the matcher to complete in their tests
https://github.com/flutter/flutter/issues/16859
2018-04-28 13:54:08 -07:00