flutter/packages/flutter_tools/test
Srujan Gaddam d3c96c65e5
Wait until all scripts are loaded in the page before running main for the DDC library bundle format (#162707)
https://github.com/flutter/flutter/issues/162567

- Uses the `bootstrapScript` field in `loadConfig` to run a script after
all scripts have loaded.
- This script just calls a callback that is set up beforehand and calls
main.
- Modifies the callback that calls `dartDevEmbedder.runMain` to wait
until both DWDS called main and all scripts have loaded.
- Unskips hot reload tests now that the race condition should no longer
exist.

## Pre-launch Checklist

- [ ] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [ ] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [ ] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [ ] I signed the [CLA].
- [ ] I listed at least one issue that this PR fixes in the description
above.
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [ ] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [ ] I followed the [breaking change policy] and added [Data Driven
Fixes] where supported.
- [ ] All existing and new tests are passing.
2025-02-05 01:12:29 +00:00
..
android_java11_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
android_preview_integration.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
commands.shard delete Usage in doctor tests (#162646) 2025-02-04 18:32:06 +00:00
data make asset_test.dart tests not dependent on context (#141331) 2024-01-11 18:08:07 +00:00
general.shard Wait until all scripts are loaded in the page before running main for the DDC library bundle format (#162707) 2025-02-05 01:12:29 +00:00
host_cross_arch.shard Auto-format Framework (#160545) 2024-12-19 20:06:21 +00:00
integration.shard Wait until all scripts are loaded in the page before running main for the DDC library bundle format (#162707) 2025-02-05 01:12:29 +00:00
src Removes dev dependencies from generated plugin registrant for non-Android platforms (#161828) 2025-01-30 17:51:07 +00:00
web.shard Wait until all scripts are loaded in the page before running main for the DDC library bundle format (#162707) 2025-02-05 01:12:29 +00:00