163 Commits

Author SHA1 Message Date
Harry Terkelsen
eac028036e Implement pushColorFilter in CanvasKit (flutter/engine#22838)
* Implement pushColorFilter in CanvasKit

* Add test

* Update goldens lock
2020-12-11 16:54:28 -08:00
David Iglesias
289570c8d8 [web] Do not reset 'cursor' in PersistedPlatformView. (flutter/engine#22977) 2020-12-10 16:03:02 -08:00
nturgut
d928bf3645 update browser changing docs (flutter/engine#22968) 2020-12-09 15:13:55 -08:00
nturgut
0bd65ac681 [web] sharding change is merged. re-enable tests (flutter/engine#22884)
* sharding change is merged. re-enable tests

* fix file name for image loading. re-block auto
2020-12-08 09:54:10 -08:00
Yegor
29a8c53eb1 copy the glibc fix to felt (flutter/engine#22878) 2020-12-04 13:25:39 -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
nturgut
61e8ad5a45 leaving only html tests (flutter/engine#22846) 2020-12-03 12:33:27 -08:00
Lasse R.H. Nielsen
bcb3c39d79 Stop using the List constructor. (flutter/engine#22793) 2020-12-02 11:53:01 -08:00
Yegor
7055732455 Temporarily reduce e2e test matrix to stop flaky web engine builds (flutter/engine#22824)
* reduce e2e test matrix

* add issue link
2020-12-02 11:10:54 -08:00
Ferhat
685ff71e37 [web] Implement tilemode for gradient shaders. (flutter/engine#22597) 2020-11-20 09:06:55 -08:00
nturgut
166e60ec05 TBR: remove the extra values which was overshadowing the test result (flutter/engine#22483)
* remove the extra values which was overshadowing the test result

* increase difference. canvaskit gives different results

* increase difference more. firefox gave 1.7 diff. add comments
2020-11-12 18:24:38 -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
Devon Carew
5cadb93fe2 use the dart analyze command to analyze source (flutter/engine#22212) 2020-10-29 18:46:52 -07:00
Zachary Anderson
dc3cf6a04e Migrate runZoned to runZonedGuarded (flutter/engine#22198) 2020-10-29 11:02:35 -07:00
Ferhat
12845a6dde [web] Fix 3d transforms for html backend (flutter/engine#21499)
* Workaround for canvas element lacking support for 3d setTransform

* update golden test

* Add webkit workaround

* Implement DOM rendering for perspective

* cleanup

* update goldens lock

* Add check for shader and filtermask for dom use

* Fix svg viewBox. Move zIndex check to bitmap canvas

* Fix null check warning

* Fix scene_builder zIndex=-1 test to force canvas usage

* Add blendmode handling for DOM mode

* Update maxdiff and golden locks

* Remove unused import

* Add drawcolor/drawpaint test. Fix bounds for drawColor/drawPaint

* update golden locks

* adjust drawColor for dpr

* Update test to use canvas

* Fix toDataUrl NNBD

* Update Picture.toImage to use canvas to obstain image data

* Remove write:true from golden calls

* Add fill-rule for _pathToSvgElement

* Update golden locks

* Fix sceneBuilder pushClip / add missing clipBehaviour

* Fix test now that clipping works correctly

* move overflow handling for tests into DOMClip.addOverflow

* Add clipRect to test to keep render inside bitmap canvas area

* Update compositing test, fix drawColor coordinates

* update golden locks

* Skip test for matchGolden infra fail

* update golden lock

* merge

* update maxdiff for text over canvas

* update golden diff

* update paint spread bounds maxdiff

* update paint spread maxDiff
2020-10-19 17:27:27 -07:00
Ferhat
519ad2a581 [web] Implement ClipOp.difference (flutter/engine#21901) 2020-10-17 00:09:41 -07:00
nturgut
eabb39ad5f [web] enabling firefox screenshot tests. adding to documentation (flutter/engine#21807)
* enabling firefox screenshot tests. adding to documentation

* test with correct goldens

* update goldens SHA

* change the goldens with flutter/goldens repo

* do not run preparation step twice. this will cause test_results to be deleted
2020-10-13 19:26:34 -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
nturgut
68e27dd17f chrome driver for chrome 86 (flutter/engine#21705) 2020-10-08 13:41:05 -07:00
Yegor
b62a537c95 Respect the --debug option in Firefox (flutter/engine#21438) 2020-10-02 18:17:02 -07:00
nturgut
03bf20acc4 [web] enable ios safari screenshot tests (flutter/engine#21226)
* enable ios safari screenshot tests

* this is the value used for screenshots in the repo.

* change revision

* fix the error made in the gaps

* do not try to fetch on LUCI

* lunix luci migth break existing prs. only skip fetching for mac

* add a placeholder tests for shadow golden test

* try to use iPhone 11 Pro on LUCI

* change the scale and the smoke test image

* add unmerged goldens PR to tests all the screenshots. will be removed later

* change the goldens lock back to flutter/goldens

* change wrong comment on screenshot tests block

* address reviewer comments

* change the commit number for goldens file

* skip canvas blend mode tests

* debugging LUCI error

* debugging LUCI error printing directory contents

* skip one test, remove the debug logs

* change the revision number to include the correct chrome files
2020-09-25 12:30:57 -07:00
David Iglesias
6d83eaebe2 [web] Add canUpdateAsMatch to PersistedPlatformView. (flutter/engine#21313) 2020-09-23 21:47:02 -07:00
nturgut
39dd63661e creating test result directory before running tests (flutter/engine#21324)
* creating test result directory. adding a prepare method to test runner

* addressing reviewer comments
2020-09-22 12:51:14 -07:00
nturgut
f070e26b18 [web] run safari desktop tests on luci (flutter/engine#21228)
* run safari desktop tests on luci

* fix safari issue. focus on dom element when new transform is received. add transform to test cases

* Update text_editing.dart

minor change to retrigger tests (recipe change is merged)
2020-09-17 13:00:06 -07:00
Mouad Debbar
11597d5c5f [web] Fix mis-aligned widget spans (flutter/engine#21112) 2020-09-15 12:58:07 -07:00
nturgut
a7b71d9116 running screenshot tests on ios-safari unit tests (flutter/engine#20963)
* running screenshot tests on ios-safari unit tests

* fixing the golden_smoke tests. changes to the documentation

* addressing reviewer comments

* cropping footer from the simulator screenshot. addressing some reviewer comments

* use .dart_tools for recording the screenshots

* fix the usage of the method

* adding TODO's for missing documentation and not supported windows tests

* addressing comments

* changing to incremental counter for file names

* add comment to the counter

* fix anaylze issues

* using takescreenshot method from the iosSimulator.

* address reviewer comments

* fix the scaling issue. disable eronous test

* change the smoke file for top gap 282

* change the variable name for scale factor
2020-09-15 12:36:00 -07:00
Chris Bracken
59e39baf33 [felt] Eliminate ninja-jobs argument (flutter/engine#21135)
Migrate to autoninja which works out the ideal level of parallelism.
2020-09-14 11:12:16 -07:00
Chris Bracken
7f7616418b [felt] Use autoninja instead of hardcoding threads (flutter/engine#21130)
autoninja is included as part of depot_tools and automatically
determines the optimal thread count.

Also applies quoting on the affected lines.
2020-09-12 12:14:05 -07:00
Chris Bracken
6e37e9cd8f Check for dart2js on felt startup (flutter/engine#21046)
This adds a check for the presence of dart2js in the engine build.

Felt relies on an engine build with `--full-dart-sdk` set. Previously,
we checked for the presence of pub, but not for the presence of
web-specific tooling such as dart2js that felt relies on. Pub is built
as part of the default Dart SDK build when `--full-dart-sdk` is not set,
so its presence is insufficient to prove that other required tooling is
present.

Without this check, we get the following error on run:

    Unhandled exception:
    ProcessException: No such file or directory
      Command: /Users/cbracken/src/flutter/engine/src/out/host_debug_unopt/dart-sdk/bin/dart2js --no-minify --disable-inlining --enable-asserts --enable-experiment=non-nullable --no-sound-null-safety -O2 -o test/paragraph_builder_test.dart.browser_test.dart.js test/paragraph_builder_test.dart
2020-09-09 14:04:52 -07:00
Jim Graham
6022f32281 adjust blur radius for HTML to match CanvasKit (flutter/engine#20840)
* adjust blur radius for HTML to match CanvasKit

* switch to new goldens for new blur radius logic
2020-09-04 12:10:48 -07:00
Jim Graham
3370791867 improve sensitivity of BackdropFilter web tests (flutter/engine#20915) 2020-09-03 21:47:41 -07:00
nturgut
0239bf949d renaming e2e tests to integration (flutter/engine#20954)
* renaming e2e tests to integration

* change the name of the files in the blocked list
2020-09-02 14:52:09 -07:00
nturgut
8a60d590bc Fix debugging issue (flutter/engine#20841) 2020-08-28 10:03:55 -07:00
Ferhat
7ad78711f9 [web] Fix path rendering when addPolygon is chained with other verbs. (flutter/engine#20803) 2020-08-27 20:25:38 -07:00
Ferhat
938d17ae5d [web] Implement SceneBuilder.pushColorFilter for html (flutter/engine#20821)
* Implement Color filter layer
* Add test with BlendMode color
* update licenses file
* Move blend functions into color_filter.dart
* dartfmt
* Add missing default clause
* Remove switch default
2020-08-27 12:06:22 -07:00
Zachary Anderson
6dca441cc6 Revert "[web] Implement SceneBuilder.pushColorFilter for html (#20802)" (flutter/engine#20820)
This reverts commit b84b4e6df775c421ca7d1db45e9a1b25ac61329c.
2020-08-27 10:12:55 -07:00
Ferhat
b84b4e6df7 [web] Implement SceneBuilder.pushColorFilter for html (flutter/engine#20802)
* Implement Color filter layer
* Add test with BlendMode color
* update licenses file
* Move blend functions into color_filter.dart
* dartfmt
2020-08-27 08:49:12 -07:00
nturgut
7d3b44dd47 [web] update chrome version (flutter/engine#20470)
* update chrome version, should be merged after recipe changes

* changing directory to use chrome driver in LUCI

* changing directory path's order

* add cipd packages's chrome version for mac

* addressing reviewer comments

* more documentation. update readme

* remove late since it didn't build. remove distinction in paths for local and LUCI.

* addressing reviewer comments. (non-null fields needs rechanging)

* addressing reviewer comments. adding 2.6 on files missing the notation
2020-08-19 12:28:44 -07:00
nturgut
ab6a3aa43a [web] Build unit tests with dart2js instead of build_runner (flutter/engine#20390)
* change from build_runner to dart2js

* add internalBootstrapBrowserTest to some of the tests

* add internalBootstrapBrowserTest to all remaining tests

* make tests build in paralel. Total time dropped from 586 to 177 seconds for 8 core MacBook

* change isolates with pool

* fixing analysis errors

* skipping canvaskit tests for ios-safari

* copy image files to the build directory

* adding internalBootstrapBrowserTest to newly added tests

* add internalBootstrapBrowserTest to faling path iterator test

* necessary changes to make chrome windows work

* in windows test in chrome instead of edge. our edge code was for legacy edge

* do not run golden unit tests on Windows LUCI bots for now

* addressing reviewer comments. Adding a method for deciding when to run integration tests.

* remove lines that I forgot to remove

* fixing analysis error. add issue for todo

* add bootstap to a test file

* adding bootstrap to another test

* add internalBootstrapBrowserTest to a golden test

* return test result in bat file. use archieve package to unzip

* fixing logs for chrome_installer

* use archieve and archieve entity instead of dynamic

* adding comments for windows platform archieve part

* addressing reviewer comments

* change readme file
2020-08-17 16:19:27 -07:00
Yegor
6f5ee087ee fix clipped and transformed content in HTML clip (flutter/engine#20310)
* fixed clipped and transformed content in HTML clip
2020-08-07 11:28:00 -07:00
nturgut
f0869ac213 add information collection for safari bots (flutter/engine#20123)
* add information collection for safari bots

* remove unused parts. add cast to fix analyze errors

* add more information. address reviwer comments

* address reviewr comments

* typo fix
2020-07-30 15:21:34 -07:00
Mouad Debbar
f89185175c [web] Set correct defaults for text in canvas (flutter/engine#20067) 2020-07-29 08:56:42 -07:00
nturgut
81f2d37070 re-enable integration tests. increase sdk version. (flutter/engine#20075) 2020-07-27 19:37:47 -07:00
nturgut
f491fb0126 both trees are red, stop running integration tests (flutter/engine#20060) 2020-07-27 11:15:56 -07:00
nturgut
bf4cd9d73d Add a todo to felt (PR to rerun the tree) (flutter/engine#20025) 2020-07-25 21:12:15 -07:00
nturgut
fe01de71bf Address platform changes in the integration tests. (flutter/engine#20008) 2020-07-24 10:52:57 -07:00
Ferhat
1ab64f15b3 [web] Fixes arc scaling when counter clockwise (flutter/engine#19927)
* [web] Fix arc scaling when counter clockwise
* update golden write
* Removed unused var
2020-07-22 10:02:07 -07:00
nturgut
d831e5aa86 Migrating web_analysis from Cirrus to LUCI (PART 1) (flutter/engine#19726)
* adding a script for web_analysis for using from luci.

* addressing reviewer comments
2020-07-14 10:14:31 -07:00
Alexandre Ardhuin
2c2e5f362c Operator equals (flutter/engine#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00