344 Commits

Author SHA1 Message Date
gaaclarke
cdf1a0d498 Added compiling the dart code for scenario tests as part of the xcode build (flutter/engine#16937) 2020-03-04 13:36:58 -08:00
Dan Field
19fc68d3d2 Refactor isolate test (flutter/engine#16933)
Make the test harness reusable for other tests that want to launch a Dart VM
2020-03-04 11:10:39 -08:00
gaaclarke
f5761ab436 Fixed the ability to scroll to the top on iOS 13 (flutter/engine#16820) 2020-03-04 10:53:11 -08:00
Dan Field
81efbea9a8 remove usage of Dart_New for paragraph/libtxt (flutter/engine#16837) 2020-02-28 00:15:40 -08:00
Dan Field
0267c56245 Revert "Enable lazy-async-stacks by-default in all modes (#16556)" (flutter/engine#16781)
This reverts commit a39aad4a0305f2525479d055ecc3ddfbf45d303b.
2020-02-24 20:04:40 -08:00
George Wright
a39303aa48 Enable Vulkan-related shell unittests on Fuchsia (flutter/engine#16718)
Also enable tests that were disabled due to MessageLoop flakiness resolved by https://github.com/flutter/engine/pull/16568
2020-02-21 11:01:16 -08:00
freiling
07bfcf19f1 [shell tests] Integrate Vulkan with Shell Tests (flutter/engine#16621)
This change creates a test only implementation of flutter::Surface backed by an
offscreen Vulkan GrContext. Much of the code in this test Surface was lifted
from flutter::VulkanWindow which I was unable to use without extricating it
from the VkSurface/VkSwapchain code which we do not want to use in offscreen
tests. I would recommend refactoring VulkanWindow to separate GrContext
creation and VkSwapchain creation in order to promote greater code reuse
between onscreen and offscreen vulkan paths.

This change is excersised thoroughly by the shell tests and was manually
tested against these tests on Fuchsia on Intel.
2020-02-20 11:37:00 -08:00
vsmenon
a605113c25 opt out dart:ui from nnbd (flutter/engine#16473)
* opt out dart:ui from nnbd

* Annotate tests as well
2020-02-20 11:04:00 -08:00
Martin Kustermann
a39aad4a03 Enable lazy-async-stacks by-default in all modes (flutter/engine#16556)
This was already enabled by-default in AOT mode in [0] - which made the
gen_snapshot invocations use "--lazy-async-stacks --no-causal-async-stacks".

See go/dart-10x-faster-async for more information.

[0] https://github.com/flutter/flutter/commit/347823234fd
2020-02-20 18:31:26 +01:00
Chinmay Garde
2995c54d0d Control test timeouts based on debugger status or command line flags. (flutter/engine#16375) 2020-02-18 15:31:04 -08:00
George Wright
f99b991c2b Revert "[shell tests] Integrate Vulkan with Shell Tests"
This reverts commit 57a8e04df9bd24b313ca4c309e7c8ba904559ea1.
2020-02-14 13:02:38 -08:00
Forrest Reiling
57a8e04df9 [shell tests] Integrate Vulkan with Shell Tests
This change creates a test only implementation of flutter::Surface backed by an
offscreen Vulkan GrContext. Much of the code in this test Surface was lifted
from flutter::VulkanWindow which I was unable to use without extricating it
from the VkSurface/VkSwapchain code which we do not want to use in offscreen
tests. I would recommend refactoring VulkanWindow to separate GrContext
creation and VkSwapchain creation in order to promote greater code reuse
between onscreen and offscreen vulkan paths.

This change is excersised thoroughly by the shell tests and was manually
tested against these tests on Fuchsia on Intel.
2020-02-14 12:56:16 -08:00
George Wright
27d74ce8b4 Move log_listener call into the reboot trap (flutter/engine#16564) 2020-02-12 15:09:38 -08:00
George Wright
eb5b0f4d2a [Fuchsia] Dump syslog output after tests have run (flutter/engine#16561) 2020-02-12 13:12:15 -08:00
Chris Yang
9016c390ee iOS platform view gesture blocking policy. (flutter/engine#15940) 2020-02-11 15:34:59 -08:00
Matt Carroll
d7902954e9 Fix ensureInitializationCompleteAsync callback when already initialized. (#39675) (flutter/engine#16503) 2020-02-11 15:25:58 -08:00
Michael Klimushyn
2ad0c2ebe7 Apply Google Java format (flutter/engine#16501)
This shouldn't result in any logical changes. I've done a quick smoke
test by building a local Android engine and running Flutter gallery, no
compile errors or other obvious issues.

Applied by running `/ci/format.sh | patch -p0` with the altered script
added in flutter/engine#16500. I did locally modify the script slightly
further so it would run against all Java files in the repo instead of
just modified ones.
2020-02-07 16:10:46 -08:00
George Wright
f9d5564332 Disable ShellTest.WaitForFirstFrameTimeout on Fuchsia (flutter/engine#16495) 2020-02-07 13:13:59 -08:00
George Wright
69e635c0fc Enable shell_unittests on Fuchsia with Vulkan dependencies. (flutter/engine#16376)
This also adds a dependency on SwiftShader's Vulkan frontend.
2020-02-06 15:07:01 -08:00
George Wright
36f5f76944 Enable runtime_unittests on Fuchsia 2020-02-06 13:52:33 -08:00
George Wright
10e7d17444 Fix elf_loader.cc on Fuchsia, add a TODO for proper fix 2020-02-06 13:52:33 -08:00
George Wright
bc12e7c8ab Disable unit tests using --gtest-filter instead of at compile time (flutter/engine#16472) 2020-02-06 13:01:14 -08:00
Felipe Archondo
456e65b23f [fuchsia] Migrate flutter runner to use Present2 (flutter/engine#14162)
No change in behavior expected. We have 2 frames in flight as before. By switching to Present2 and specifying a kMaxFramesInFlight however, we allow us greater flexibility to change how Flutter schedules its frames.

This change also adds tests for SessionConnection and VsyncRecorder.
2020-02-05 13:51:04 -08:00
George Wright
252134fac8 Expose the dart kernel snapshot target and copied assets as a public dependency (flutter/engine#16266)
This allows for targets to depend on the assets generated by the test_fixtures target.
2020-02-04 12:30:48 -08:00
Chinmay Garde
b8733635e8 Kill the test harness if any test exceeds a timeout. (flutter/engine#16349)
Our tests depend on explicit latching to verify assertion are checked. If a test
does not respond for a long time, it has probably encoutered a deadlock. Instead
of waiting for the test runner to detect this, apply a very aggresive timeout on
a per test basis.
2020-02-04 11:22:13 -08:00
Dan Field
030975d7f7 use echo to test whether host is up (flutter/engine#16322) 2020-01-31 23:46:57 -08:00
Chinmay Garde
426c48aaac Remove all uses of the redundant flutter_root variable. (flutter/engine#16311)
This was only necessary when the Engine had to build in multiple buildroots
where the sources where checked out at different paths relative to the
buildroot. This is no longer the case and there are already cases GN rules
have been written that mix and match variable usage with the direct
specification of the path to the Flutter sources relative to the sole buildroot.
2020-01-31 21:49:48 -08:00
Chinmay Garde
2a949ca345 Isolate and move common portable ELF loading from fixtures into //flutter/testing. (flutter/engine#16305)
Also update all known test harnesses to use this and fixes the broken shell_unittests harness.

Fixes https://github.com/flutter/flutter/issues/49853
2020-01-31 12:52:00 -08:00
Chinmay Garde
0a9ea0d319 Make output of run_tests.py easier to understand. (flutter/engine#16229)
* The outputs of all commands are not printed and not just commands that fail.
* The stdout and stderr are now printed in order.
* Clear dividers mark logs from specific subprocesses or errors.
* The test whose run failed should now be exactly on top of the error message and code.
2020-01-29 20:47:35 -08:00
Gary Qian
20ab007c56 Reland "Engine/LibTxt/dart:ui impl of TextHeightBehavior #15087" (flutter/engine#16155) 2020-01-29 10:52:24 -08:00
Dan Field
b392f1e3bd Revert breaking PRs (flutter/engine#16148)
* Revert "Web PargraphStyle TextHeightBehavior integration (#16075)"

This reverts commit a152c9df009f74b3f52c46845e618b8ddcf3eaa7.

* Revert "Engine/LibTxt/dart:ui impl of TextHeightBehavior (#15087)"

This reverts commit e6f6d2a3c2fe333a85c8997d755ca91594e80544.
2020-01-28 10:40:05 -08:00
Gary Qian
e6f6d2a3c2 Engine/LibTxt/dart:ui impl of TextHeightBehavior (flutter/engine#15087) 2020-01-27 13:37:11 -08:00
Chinmay Garde
93d67baf2b Move tonic into //flutter/third_party. (flutter/engine#15895)
Tonic used to be used by multiple consumers outside of Flutter Engine. Due to
this, it has an unnecessary abstraction layer as well as utilities duplicated in
FML and other engine subsystems. The sole user of Tonic is now the Flutter
Engine. It is intended that the Flutter Engine team now owns this subsystem,
remove unnecessary utilities and document the headers. This is the first step in
the transition. No history is being imported as the initial history was already
lost in the transition of this component to fuchsia.googlesource. As this
component was unmaintained there, I could see no additional value in importing
the history of the patches there.

No functional change. Just moved the repo from //third_party to
//flutter/third_party and updates GN refs.
2020-01-25 17:01:56 -08:00
George Wright
274356d3ab Ensure GetFixturesPath works on Fuchsia (flutter/engine#15978) 2020-01-24 15:47:29 -08:00
Dan Field
62a99c60c5 the the fix (flutter/engine#15973) 2020-01-24 12:43:32 -08:00
Brian Osman
ea2edc9a40 Implement new SkCanvas virtuals in testing canvases (flutter/engine#15893) 2020-01-22 15:52:46 -05:00
godofredoc
af1484e0be Add .vpython dependencies to migrate run_tests.py to vpython. (flutter/engine#15161)
vpython is used to provide a hermetic environment for python scripts.
Dependencies are provided using cipd and take advantage of the caching
tools provided by luci services.
2020-01-21 11:16:59 -08:00
Chinmay Garde
c9f71542d1 Disable GPUThreadMerger tests inline instead of via harness flags. (flutter/engine#15706) 2020-01-16 17:11:54 -08:00
Dan Field
44c0db9c57 implicit casts and add missing docs (flutter/engine#15698) 2020-01-16 17:03:33 -08:00
chunhtai
0955ec77b3 loadfontfromlist should send fontchange message to framework (flutter/engine#14805) 2020-01-16 17:03:04 -08:00
Dan Field
1a91d5fb85 const finder (flutter/engine#15668) 2020-01-16 17:01:20 -08:00
Chinmay Garde
8c735c8123 Disable fml_unittests till flakes are addressed. (flutter/engine#15676) 2020-01-15 12:04:36 -08:00
Dan Field
010b6224cd try 10 times (flutter/engine#15653) 2020-01-14 17:58:07 -08:00
LongCatIsLooong
530cf1c010 Reland "Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (#15316)", Reverted in #15313
This reverts commit e1c106dc703463880013285c0c137540dc3ceec4.
2020-01-08 12:06:15 -08:00
LongCatIsLooong
e1c106dc70 Revert "Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (#15154)" (flutter/engine#15313)
This reverts commit ea4661f61bf51848c6436777c0feb0c7c4bd00fa.
2020-01-08 10:43:32 -08:00
LongCatIsLooong
ea4661f61b Bump simulator version in IosUnitTests & scenario app in preparation for luci xcode 11 migration (flutter/engine#15154) 2020-01-08 10:05:56 -08:00
Dan Field
a0b01fb79e Font subset (flutter/engine#14828) 2020-01-07 07:48:15 -08:00
liyuqian
9be381a891 Run and collect benchmarks (flutter/engine#14556)
This will start to collect engine benchmarks in the flutter-cirrus
Datastore for all post-submit commits.

We're using this to test how https://github.com/liyuqian/metrics_center
works. Once it's stablized, we should move metrics_center into
flutter/packages, and migrate data to flutter-infra Datastore.

Related issue: https://github.com/flutter/flutter/issues/37434
2019-12-23 17:22:01 -08:00
Jim Graham
77b9134e96 Engine support for ImageFiltered widget (flutter/engine#14491)
web_ui support coming in https://github.com/flutter/flutter/issues/47163
2019-12-19 16:47:08 -08:00
George Wright
b44f4ae767 Fix message_loop_fuchsia and thus enable fml_tests and flow_tests for Fuchsia (flutter/engine#14583) 2019-12-19 17:25:06 -05:00