Commit Graph

42 Commits

Author SHA1 Message Date
Jackson Gardner
31209d04ff
flutter test --wasm support (#145347)
* Adds support for `flutter test --wasm`.
  * The test compilation flow is a bit different now, so that it supports compilers other than DDC. Specifically, when we run a set of unit tests, we generate a "switchboard" main function that imports each unit test and runs the main function for a specific one based off of a value set by the JS bootstrapping code. This way, there is one compile step and the same compile output is invoked for each unit test file.
* Also, removes all references to `dart:html` from flutter/flutter.
* Adds CI steps for running the framework unit tests with dart2wasm+skwasm
  * These steps are marked as `bringup: true`, so we don't know what kind of failures they will result in. Any failures they have will not block the tree at all yet while we're still in `bringup: true`. Once this PR is merged, I plan on looking at any failures and either fixing them or disabling them so we can get these CI steps running on presubmit.

This fixes https://github.com/flutter/flutter/issues/126692
2024-03-21 20:08:07 +00:00
Michael Goderbauer
60a87d0798
Sync Lints (#127976)
Syncs our lints with https://github.com/dart-lang/linter/blob/master/example/all.yaml:
* removed the deprecated `iterable_contains_unrelated_type` and `list_remove_unrelated_type` lints (their replacement `collection_methods_unrelated_type` was already enabled for us)
* enabled the new `no_self_assignments` and fixed one issue triggered by the lint.
2023-06-02 04:27:17 +00:00
pdblasi-google
e22e8f2528
Updates integration_test to no longer use TestWindow (#122358)
Updates `integration_test` to no longer use `TestWindow`
2023-03-14 18:19:20 +00:00
Michael Goderbauer
b308555ed1
Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
Kaushik Iska
d5f372bccd
Request DartPerformanceMode.latency during transitions (#110600) 2022-09-07 12:54:06 -04:00
Yegor
e505529344
[web] define $flutterDriverResult variable early in driver test initalization (#107337) 2022-07-23 00:48:06 +00:00
Alexandre Ardhuin
07f1c20474
add missing trailing commas in list/set/map literals (#102585) 2022-04-27 09:15:35 +02:00
Ian Hickson
ab89ce285f
Clean up the bindings APIs. (#89451) 2022-02-03 14:55:15 -08:00
Dan Field
ffba5c425c
Print a more helpful error if DDS is enabled when running integration_test and enableTimeline is called (#92509) 2022-01-19 17:50:18 -08:00
Ian Hickson
f25b833f27
Enable avoid_print lint. (#91444) 2021-10-07 16:48:04 -07:00
Mouad Debbar
c2ea78d231
Revert "Enable avoid_print lint. (#91332)" (#91438)
This reverts commit cb378edc9e.
2021-10-07 16:16:17 -04:00
Ian Hickson
cb378edc9e
Enable avoid_print lint. (#91332) 2021-10-07 09:53:03 -07:00
Dan Field
c5861cfb56
Revert "Fix DPR in test view configuration (#88609)" (#88889)
This reverts commit 5feee0d8fa.
2021-08-25 10:09:03 -07:00
Dan Field
5feee0d8fa
Fix DPR in test view configuration (#88609) 2021-08-24 14:26:54 -07:00
Dan Field
d5d8265079
Revert "Write timelines to separate files (#88473)" (#88594)
This reverts commit fa83fefa42.
2021-08-20 11:57:32 -07:00
Dan Field
fa83fefa42
Write timelines to separate files (#88473) 2021-08-20 09:47:04 -07:00
Cody Goldberg
ab6ce71402
[flutter_test/integration_test] added setSurfaceSize test coverage (#82712)
This PR includes an updated test case for integration_test and a new test case for flutter_test to ensure that hit tests transform properly when using setSurfaceSize, for both the IntegrationTestWidgetsFlutterBinding and LiveTestWidgetsFlutterBinding bindings.
2021-07-30 13:47:20 -07:00
Kaushik Iska
df3fe587e8
Validate that min frame number is numeric (#86498) 2021-07-15 17:11:09 -07:00
Ren You
3dea9f0251
Revert "Clean up the bindings APIs (#86438)" (#86484)
This reverts commit d056500bfe.
2021-07-15 09:29:16 -07:00
Ian Hickson
d056500bfe
Clean up the bindings APIs (#86438) 2021-07-14 14:41:24 -07:00
Zachary Anderson
7f741e9181
Revert "Clean up the bindings APIs (#86388)" (#86404)
This reverts commit 31de052e3f.
2021-07-13 21:32:29 -07:00
Ian Hickson
31de052e3f
Clean up the bindings APIs (#86388) 2021-07-13 18:31:11 -07:00
Ian Hickson
c800b9c3e4
Revert "Clean up the bindings APIs (#83843)" (#86386)
This reverts commit e2490f2906.
2021-07-13 15:47:40 -07:00
Ian Hickson
e2490f2906
Clean up the bindings APIs (#83843) 2021-07-13 12:41:03 -07:00
Anis Alibegić
c99ed373b3
Fixed large amount of spelling errors (#83744) 2021-06-02 10:14:06 -07:00
Jia Hao
446673a65f
[integration_test] Fix early reporting of results (#83685) 2021-06-01 13:24:04 -07:00
Phil Quitslund
61c30c41b2
fix sort_directives violations (#80817) 2021-04-21 13:49:03 -07:00
Chris Bracken
3e7e06512c
Correct misspellings throughout the codebase (#79500) 2021-04-01 10:04:03 -07:00
Sam Rawlins
e8d52be500
Remove "unnecessary" imports in flutter_tools tests (#75012) 2021-02-09 09:46:07 -08:00
Dan Field
d3092541e2
Reland integration_test NNBD (#75074)
* Revert "Revert "NNBD integration_test (#74922)" (#75030)"

This reverts commit 87b043658b.

* fix bad merge issues
2021-02-01 10:19:14 -08:00
Ian Hickson
87b043658b
Revert "NNBD integration_test (#74922)" (#75030)
This reverts commit cca9592f0e.
2021-01-29 15:46:21 -08:00
Dan Field
cca9592f0e
NNBD integration_test (#74922) 2021-01-29 14:31:06 -08:00
Jia Hao
234952cf29
[flutter_tools] Simplify flutter test internals (#74176) 2021-01-28 15:24:04 -08:00
Dan Field
9eacc9ef62
drop mockito for integration_test (#74770) 2021-01-26 18:24:03 -08:00
Jia Hao
22f1700427
[flutter_tools] Make setting of CWD consistent for flutter test (#74622) 2021-01-25 22:34:03 -08:00
Dan Field
3de9342ffa
No test core (#74065)
* Revert "[integration_test] Fix incorrect logging for the legacy reporter (#72699)"

This reverts commit 57e134058f.

* Revert reporter
2021-01-15 20:05:10 -08:00
Jia Hao
c2bfb7b348
[integration_test] Wrap pumped widgets with a RepaintBoundary (#70368) 2020-12-09 16:33:04 -08:00
Jia Hao
87746c7674
[integration_test] Reland add a run method for proper reporting of test results (#70513)
* [integration_test] Reland add a `run` method for proper reporting of test results

* Changes to path resolving from previous PR
2020-11-13 19:39:05 -08:00
Jonah Williams
ed977dd6a4
Revert "[integration_test] Add a run method for proper reporting of test results (#70075)" (#70466)
This reverts commit af5eb3b987.
2020-11-13 09:01:09 -08:00
Jia Hao
af5eb3b987
[integration_test] Add a run method for proper reporting of test results (#70075) 2020-11-13 19:57:15 +08:00
Jia Hao
f5933dbad3
[integration_test] Add a setter for defaultTestTimeout (#70073)
* [integration_test] Add a setter for defaultTestTimeout

* type annotation

* More type annotations

* Fix doc
2020-11-09 08:39:05 -08:00
Dan Field
76784651d4
Move package:integration_test to flutter/flutter (#69622) 2020-11-05 17:28:47 -08:00