68 Commits

Author SHA1 Message Date
Jonah Williams
11f0419aa4 [web] specify all defines used for html, ck, auto rendering modes (flutter/engine#23433) 2021-01-05 21:18:56 -08:00
Siva
ae14ea248a Add missing sdk constriant in pubspec.yaml files. (flutter/engine#23124)
* Add missing sdk constriants in pubspec.yaml files.

* Update tools/android_lint/pubspec.yaml

Co-authored-by: Zachary Anderson <zanderso@users.noreply.github.com>
2020-12-17 09:45:26 -08:00
Yegor
d2213fc58e Make CkPicture resurrectable (flutter/engine#22807)
* Make CkPicture resurrectable

* disable goldens on Firefox

* add non-recording canvas test; fix Firefox test
2020-12-03 13:13:44 -08:00
Ferhat
ba105e0ea0 [web]Update @dart annotation. Change shaders to allocate smaller canvas (flutter/engine#22481) 2020-11-13 13:55:32 -08:00
nturgut
00333158e6 Upgrades to felt (running on multiple modes, multiple backends, single test target option) (flutter/engine#22260)
* testing running the tests on all build modes

* don't run debug mode on other browsers

* fix platform message test failures

* some cleanup. change dispose platform channel message

* adding flags to control the integration tests better with felt

* running tests by target name, selecting web rendering backend

* fix conditions

* carrying some conditions to helper methods. Adding comments

* create a blocked list for failing canvaskit test

* parse parameters before all integration tests

* Give better warning to developers for tests that are blocked for CI

* address some reviwer comments (more remains)

* remove named parameters

* also run with auto mode

* add verbose option

* reduce the number of tests running. skip url_test for now
2020-11-11 17:18:15 -08:00
Yegor
06a9b5b950 Update pubspecs to null-safe dependencies (flutter/engine#22366)
* update pubspecs to null-safe dependencies

* remove build_runner dep; upgrade quiver

* use analysis_options.yaml to control analysis scope
2020-11-06 17:54:53 -08:00
Jason Simmons
717ab830a1 Roll the path package in web_ui and web_test_utils to match the version used by the framework (flutter/engine#22309) 2020-11-04 22:23:31 -08:00
Jonah Williams
d3d5bd8761 [null-safety] update path version (flutter/engine#22134) 2020-10-26 18:49:42 -07:00
Angjie Li
6ade27bd24 Auto detect mode to determine which rendering backend to use. (flutter/engine#21852) 2020-10-22 16:17:02 -07:00
Jonah Williams
18e2315345 [null-safety] fix build rule to produce sound dill (flutter/engine#21784)
The space in the argument name was causing this argument to be dropped and the sound and unsound dills to be identical.
2020-10-12 16:35:09 -07:00
nturgut
e73acfbe6e E2e screenshot tests2 (flutter/engine#21383)
* carrying code

* more changes for carrying the code

* rebase changes onto ios-screenshot tests

* adding screenshot capability to text_editing e2e test

* address some comments

* change enable flag for isUnitTestsScreenshotsAvailable

* addressing the reviewer comments

* change the dependency for path

* add to licencense file

* changing goldens commit no. the new commit has the screenshot goldens

* update readme file

* firefox tests needs LUCI changes

* change to release mode since screenshots were taken in release mode

* change window size

* some argument changes

* small comment change

* test the chrome linux tests again

* use roboto font instead of default font

* addressing reviewer comments

* change commit for goldens
2020-10-12 16:25:57 -07:00
Juyeong Lee
8fefd60dda Fix Typos (flutter/engine#19691) 2020-07-31 16:32:58 -07:00
Siva
03706dce89 Manual roll of Dart from 24c7666def...40fd1c456e (flutter/engine#20092)
* Manual roll of Dart from 24c7666def...40fd1c456e

dart-lang/sdk@40fd1c456e Revert "[dart:io] Add Abort() on HttpClientRequest"
dart-lang/sdk@17d7296a42 [vm/nnbd/bytecode] Fix reuse of type arguments in bytecode
dart-lang/sdk@58b6f40c73 Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns. (reland)
dart-lang/sdk@fc8a6d9f9b [VM/compiler] Dereference TypeRef literal when propagating constants.
dart-lang/sdk@0689ec527a Move "test.dart" (well, most of its contents) into pkg/test_runner.
dart-lang/sdk@1094b3c61d Prepare static error test updater tool to handle web tests.
dart-lang/sdk@b258585f2f [observatory] Migrate from deprecated isInstanceOf to isA.
dart-lang/sdk@dfe1d9b682 Disable OverrideContributor for Cider.
dart-lang/sdk@aea99b2f5c scope debug property assist to Diagnosticables
dart-lang/sdk@4b96f20a79 [dart:io] Add Abort() on HttpClientRequest
dart-lang/sdk@1b1a39708c [build] Use frameworks instead of libs
dart-lang/sdk@3fef522496 Revert "Reland "[vm] Replaces fuchsia.deprecatedtimezone""
dart-lang/sdk@8c664d4f3f Revert "Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns."
dart-lang/sdk@2efb5bebc7 [ dart:_http ] Fix typo in HTTP response timeline event
dart-lang/sdk@0884dae36c Revert "Fix the #include path for ICU headers"
dart-lang/sdk@5171534e81 Scope tweaks. Report REFERENCED_BEFORE_DECLARATION in more places.
dart-lang/sdk@6bba75079a Issue 42797. Understand in legacy libraries that a function returning Never (in Null Safety library) never returns.
dart-lang/sdk@b4ebbb7f5c [build] Update gn to match Fuchsia
dart-lang/sdk@cb428a7a02 [dart2js] Remove old bug work around in collector.
dart-lang/sdk@08663c20ab Change flutter patch to match existing DEPS on master branch
dart-lang/sdk@146ad014d9 update js/meta for the 2.10 dev sdk
dart-lang/sdk@488c718793 [co19] Roll co19 to d79951e06e443213243e54c2c32694b79a221b65
dart-lang/sdk@ba20edd7be Add patch for flutter-engine when changing to version 2.10

* Rev buildroot to latest version.

* Update license.

* update.

* Update gn revision.

* Format BUILD.gn files as the gn revision has been updated.
2020-07-29 13:10:15 -07:00
Jason Simmons
775070bf96 Upgrade the analyzer package to version 0.39.15 for Dart 2.10 support (flutter/engine#20024) 2020-07-24 18:26:43 -07:00
Jonah Williams
a9c252c62d [null-safety] update web_sdk build rules to use package_config (flutter/engine#19741)
Work towards flutter/flutter#60999

All dart compilations must eventually use package-config, since this contains the language versions. Update all of the web_sdk rules.
2020-07-15 09:54:12 -07:00
Yegor
078629ad1e First batch of CanvasKit bindings using @JS (flutter/engine#19450)
* first batch of @JS bindings
2020-07-01 18:30:58 -07:00
Jonah Williams
284c2bd0db update compilation rules for null-safety (flutter/engine#19386)
Re-attempt at #19162 which seems to be stuck on a bad framework revision
2020-06-29 14:00:27 -07:00
Eric Seidel
a1c9ce5e56 Teach web_sdk/sdk_rewritter.dart how to write a stamp file. (flutter/engine#19114) 2020-06-18 19:53:03 -07:00
Yegor
30879c3f50 take web_ui to null safety (flutter/engine#19027)
move web_ui to NNBD syntax
2020-06-16 15:28:06 -07:00
Yegor
b457938f23 apply null safety syntax to mobile dart:ui (flutter/engine#18933)
* apply null safety syntax to mobile dart:ui
2020-06-12 12:42:12 -07:00
Siva
a5281b393d Manual roll of Dart 617bc54b71...39e0e75fcf (flutter/engine#18215)
This roll unforks the Dart SDK to use the non nullable SDk,
the engine platform file is built with all the dart:* libraries
opted in except for dart:ui

dart-lang/sdk@617bc54b71 [dart2js] unit test patch for unfork cl.
dart-lang/sdk@ce5d18b0f0 [CFE] - Update exectations of CFE unit tests to account for NNBD unfork
dart-lang/sdk@be0c78a7cc [dart2js] Fix platform-binaries on bots.
dart-lang/sdk@03ce33f80c [BUILD] - Initial CL to unfork the NNBD Dart SDK
2020-05-07 20:58:44 -07:00
Jason Simmons
b4b5342886 [web] Upgrade the test package to remove the dependency on package_resolver (flutter/engine#18135) 2020-05-05 10:57:02 -07:00
Siva
048552580a Revert all build changes made to test the Dart NNBD unfork CL. (flutter/engine#18033) 2020-04-29 12:32:30 -07:00
Siva
267d63e320 Trial PR to enable null safety unfork in the Dart SDK. (flutter/engine#17818)
* Trial PR to enable null safety unfork in the Dart SDK.

* Fix web-sdk builds.

* Manua; Roll of Dart cab69e77066b0db305187fd6e618a4f524ae9efd...03429b20cd67f85d65cc589b529ab8c1a4780912

dart-lang/sdk@ cab69e7706 [BUILD] - Initial CL to unfork the NNBD Dart SDK NOTE: This is a trial submit and will be reverted immediately.
2020-04-27 19:51:23 -07:00
Jonah Williams
9bb1af01f0 build a precompiled SDK with canvas kit enabled (flutter/engine#17115) 2020-03-12 14:50:22 -07:00
vsmenon
d66d21edab Remove mirrors on the web (flutter/engine#16516) 2020-02-10 13:58:04 -08:00
Yegor
e101a7c901 use percent for golden diff rates; tighten the values (flutter/engine#16430) 2020-02-05 15:53:45 -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
vsmenon
08f169dbcc [web] update dart:js and dart:js_util to new upstream locations (flutter/engine#15681) 2020-01-15 15:58:47 -08:00
Yegor
8b63cb5933 fix text blurriness in HTML-rendered text (flutter/engine#15649)
* fix text blurriness in HTML-rendered text
2020-01-15 14:20:28 -08:00
Jonah Williams
fb6777923d allow ignoring toString, hashCode, and == in api_conform_test (flutter/engine#13907) 2019-11-19 10:21:31 -08:00
Jason Simmons
2c61d2336b Reformat BUILD.gn files to comply with the format checker presubmit script (flutter/engine#13401) 2019-10-29 09:49:16 -07:00
vsmenon
9a39e19daf Enable/tweak web sdk source maps, take 2 (flutter/engine#13161)
Update outline step to remove absolute paths here as well.  See: https://dart-review.googlesource.com/c/sdk/+/122178/5/utils/dartdevc/BUILD.gn
2019-10-21 21:20:58 -07:00
Kaushik Iska
0bd17221f7 Revert "Enable/tweak web sdk source maps (#13141)" (flutter/engine#13148)
This reverts commit 71a51d73955d7caef22fcf1bc799d4593c05f7c7.
2019-10-15 13:37:52 -07:00
vsmenon
71a51d7395 Enable/tweak web sdk source maps (flutter/engine#13141) 2019-10-15 11:29:10 -07:00
Ferhat
a3654ec08f [web] Add basic color per vertex drawVertices API support (flutter/engine#13066)
* Implement basic drawVertices for BlendMode.srcOver and hairline rendering
* Implement maxDiffRate parameter for screenshot tests
2019-10-14 13:16:05 -07:00
Devon Carew
00ae651c92 remove references to package:_chrome (flutter/engine#12931) 2019-10-08 09:41:46 -07:00
David Iglesias
0c2c7cfd15 Add web engine screenshot (scuba) tests (flutter/engine#12353)
* Import all golden files and tests from internal repo.
* Adapt test files to new screenshot API, and tweak some settings.

(Check PR to see individual changes to each file)

Fixes https://github.com/flutter/flutter/issues/40975
2019-09-20 09:00:55 -07:00
David Iglesias
25d2d2a47a More controls for Screenshot tests (for web) (flutter/engine#12284)
New features for golden tests (for web):

* Height/width of headless browser instance extracted to constants
* Remove border from the host iframe
* Added 'region' to matchGoldenFile, so screenshots can capture only
a subset of the viewport
* Added image-format-awareness (png) to screenshot comparison, so it
doesn't only look at raw bytes
* When a test fails, output a diff image alongside the unexpected
output.
2019-09-18 14:58:30 -07:00
Yegor
0a3bdb877f Add custom test plugin that supports screenshot tests (flutter/engine#12079)
- Add a custom `PlatformPlugin` that spins up a server waiting for test to request a screenshot.
  - When a screenshot is requested the plugin talks to Chrome via the debug port, captures a screenshot, and compares it with a golden file
- This PR also adds proper CLI for `dev/test.dart` with an `ArgParser` for future extension into a proper developer tool for the team.
  - As a first couple of features, it adds `--debug` option to launch Chrome in debug mode, a `--target` option to choose a single test to run rather than all tests, and `--shard` option to choose a subset of tests to run.

Limitations:
 - While screenshot test will run on Cirrus, they are configured to not fail on Cirrus. Need to solve Chrome version skew.
 - Stack maps do not work yet (you get stacks, but they are nonsensical)
 - When requesting a single test, build_runner builds all tests anyway
 - Nothing but desktop Chrome is supported
 - Nothing but Linux is supported
 - There's no Chrome version pinning; currently assumed stable Chrome channel
2019-09-10 13:53:47 -07:00
Harry Terkelsen
21a7659d61 Provide a hook for a plugin handler to receive messages on the web (flutter/engine#11796)
* WIP on web plugin registry

* WIP on web plugins

* More WIP on registering web plugins

* remove flutter_web_plugins

* add license header

* Update year of license header to 2013

* Update the license goldens file
2019-08-30 17:08:31 -07:00
Jonah Williams
d9abd5a67d make engine, ui, and sdk rewriter inputs of dill construction (flutter/engine#11554) 2019-08-27 18:24:42 -07:00
Jonah Williams
ddc12be487 Build legacy web dart sdk (flutter/engine#11360) 2019-08-21 18:55:19 -07:00
Jonah Williams
87334f9974 Reland remove kernel sdk script (flutter/engine#10814) 2019-08-20 21:16:02 -07:00
Chris Bracken
5020bdf02b Roll Dart SDK 78ce916d82..15a3bf82cb (flutter/engine#10810)
15a3bf82cb Add defined() guard for checkout_llvm build flag
d5d00c847a Create ExtensionMemberResolver instance in ResolverVisitor.
9ec8d9ff25 [ddc] Merge modular/issue37523 test into modular/nested_constants test
ea313da021 Rework the resolution result
ab55923918 [dartdevc] ddb fix for d8
77f545bbc4 [vm/ffi] Fix instantiation and garbage collection of NativeType objects
b0d079a96b Set context type for extension override receiver.
dc2c942c7d [vm/bytecode] Avoid adding all ICData objects from constant pool
804a338b5e Change recordScopeDependencies() to return true on type parameter of strict FunctionType.
0c727420c3 Stop reporting undefined method when there are ambiguous extension methods
6d2902576b Emit a server.error event if we fail to start the completion model isolate
51f4574e50 Reland "[vm/ffi] Support structs on 32bit architectures"
621b96f97b Migration: begin adding infrastructure for reporting unsatisfiable substitutions.
19654f30d0 [cfe+vm+ddc] Return ClassHierarchy and CoreTypes together with Component
573789f7f1 [cfe] Insert default super initializer when outlining const constructor
2019-08-09 14:57:15 -07:00
Jonah Williams
31f9de5622 Revert "Remove flutter_kernel_sdk dart script (#10808)" (flutter/engine#10811) 2019-08-09 13:36:13 -07:00
Jonah Williams
efceb802b3 Remove flutter_kernel_sdk dart script (flutter/engine#10808) 2019-08-09 12:43:20 -07:00
Yegor
92407929f4 rename stub_ui to web_ui (flutter/engine#10776)
* rename stub_ui to web_ui

* update licenses
2019-08-09 11:11:20 -07:00
Nicholas Shahan
9c0942ff2d Enable consts from environment in DDK for flutter_web (flutter/engine#10069)
Fixes: https://github.com/dart-lang/sdk/issues/37605

We were seeing unevaluated constants during the build for flutter_web. Passing an empty map is handled differently than null so the constant evaluation will kick in.
2019-07-23 16:05:36 -07:00
Jonah Williams
571d08a5bb Update flutter_web to latest (flutter/engine#9792) 2019-07-11 15:12:30 -07:00