189 Commits

Author SHA1 Message Date
Harry Terkelsen
ed50eca2c2
Use runes to get code units in CanvasKit. (#24024) 2021-01-28 17:29:03 -08:00
Ferhat
7e0078fd19
[web] Fix drawVertices rendering when colors array is null and style is fill (#23995) 2021-01-28 09:37:57 -08:00
Ferhat
ff8593f303
[web] Fix svg based stroke rendering. (#23969) 2021-01-27 13:40:21 -08:00
Yegor
e598d2f9e4
[canvaskit] fix text background, foreground, color; add text style tests (#23800)
* [canvaskit] fix text background, foreground, familyFallback; add style tests

* add leak test

* update goldens_lock.yaml

* remove solo

* Warn when popping out of empty text style stack
2021-01-26 20:19:46 -08:00
Mouad Debbar
40c3a9725f
[web] Fix alignment issue in rich paragraphs (#23965) 2021-01-26 13:02:45 -08:00
Ferhat
a242dd866b
[web] Fix shadows for arbitrary paths on PhysicalShape (#23830) 2021-01-22 14:22:17 -08:00
Harry Terkelsen
5b9cd44b1a
Automatically download Noto fonts as backup fonts in CanvasKit mode (#23728)
* Revert "Revert "[CanvasKit] Automatically fall back to Noto fonts (#23096)" (#23357)"

This reverts commit f9f4d0168dc6e03324844db942a4bca717ebb2e0.

* WIP

* Use an Interval Tree to store the unicode ranges for the Noto Fonts

* Update licenses

* Remove debug print statements

* Respond to comments

* Fix analysis error

* Add tests

* Respond to comments

* Fix test

* Update goldens lock

* Skip screenshot test on Safari

* Skip CanvasKit tests on iOS Safari

* Move CanvasKit initialization so it doesn't run on iOS Safari
2021-01-21 12:58:33 -08:00
Ferhat
82aac14cfb
[web] Fix drawPoints api crash when strokeWidth is not specified. (#23773) 2021-01-20 11:39:06 -08:00
Ferhat
2b994d5d16
[web] Fix shadow rendering using boxshadow due to webkit repaint area bug (#23769) 2021-01-20 09:29:03 -08:00
Mouad Debbar
9bc776a841
[web] Add --watch flag to 'felt test' (#23727) 2021-01-19 13:16:00 -08:00
Ferhat
9a4f4159d8
[web] Fix linear gradient tiling offset. (#23691) 2021-01-15 11:08:55 -08:00
Sam Rawlins
a43b2bd907
Return null in Future<WebSocketChannel>.catchError handler (#23101) 2021-01-14 14:29:58 -08:00
Mouad Debbar
3fd4c63fab
[web] Fix letter spacing for rich paragraphs (#23683) 2021-01-14 12:37:41 -08:00
Yegor
3a89dff758
Switch to directional shadows (#23459)
* Switch to directional shadows

* update goldens
2021-01-13 12:29:58 -08:00
Yegor
2bcb01b80c
Add flt-renderer and flt-build-mode debug attributes to <body> (#23430)
* add flt-renderer and flt-build-mode debug attributes to <body>
* explicitly specify renderer in tests
2021-01-08 18:45:45 -08:00
Mouad Debbar
2bcca6c6cd
[web] Draw shadows for text in rich paragraphs (#23470) 2021-01-07 13:03:26 -08:00
Mouad Debbar
599a0728f9
[web] Placeholders for rich paragraphs (#23160) 2021-01-06 14:31:19 -08:00
Ferhat
8222475ece
[web] Reland - Switch web-render option default to auto (#23454) 2021-01-06 10:00:52 -08:00
Ferhat
e056a449e7
Revert "[web] Reland - Switch web-render option default to auto (#23313)" (#23321)
This reverts commit 9c7c83306f1c25e066c98761cac560ec252a7b02.
2020-12-28 16:27:10 -08:00
Ferhat
9c7c83306f
[web] Reland - Switch web-render option default to auto (#23313) 2020-12-28 11:10:38 -08:00
nturgut
b7cd3f8e70
Revert "Re-merge Switch web-render option default to auto. Add documentation (#23187)" (#23246)
This reverts commit 08d5c33b02996e3384f48f9160ed2047b5be4c66.
2020-12-22 12:02:26 -08:00
nturgut
08d5c33b02
Re-merge Switch web-render option default to auto. Add documentation (#23187) 2020-12-21 09:56:02 -08:00
Zachary Anderson
67cb0f382e
Revert "[web] Switch web-render option default to auto (#23090)" (#23161)
This reverts commit 50e7d89163418b73be4b376ac96a335856da1224.
2020-12-17 18:22:36 -08:00
Mouad Debbar
d941aefa61
[web] Rich text painting on bitmap canvas (#23136) 2020-12-17 18:19:02 -08:00
Ferhat
50e7d89163
[web] Switch web-render option default to auto (#23090) 2020-12-16 16:43:13 -08:00
Yegor
3d3e16e303
upgrade Firefox to 83 (#22829) 2020-12-15 12:12:06 -08:00
Harry Terkelsen
25293df2eb
Implement pushColorFilter in CanvasKit (#22838)
* Implement pushColorFilter in CanvasKit

* Add test

* Update goldens lock
2020-12-11 16:54:28 -08:00
David Iglesias
50d830a1ac
[web] Do not reset 'cursor' in PersistedPlatformView. (#22977) 2020-12-10 16:03:02 -08:00
nturgut
8518a5bbe6
update browser changing docs (#22968) 2020-12-09 15:13:55 -08:00
nturgut
2951317570
[web] sharding change is merged. re-enable tests (#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
ff87b1d767
copy the glibc fix to felt (#22878) 2020-12-04 13:25:39 -08:00
Yegor
37738353cd
Make CkPicture resurrectable (#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
e71c6f4d7e
leaving only html tests (#22846) 2020-12-03 12:33:27 -08:00
Lasse R.H. Nielsen
105004dd2d
Stop using the List constructor. (#22793) 2020-12-02 11:53:01 -08:00
Yegor
644dd65a34
Temporarily reduce e2e test matrix to stop flaky web engine builds (#22824)
* reduce e2e test matrix

* add issue link
2020-12-02 11:10:54 -08:00
Ferhat
1bf5c8b084
[web] Implement tilemode for gradient shaders. (#22597) 2020-11-20 09:06:55 -08:00
nturgut
03ff8a4096
TBR: remove the extra values which was overshadowing the test result (#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
4d44b7e7d9
Upgrades to felt (running on multiple modes, multiple backends, single test target option) (#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
1e3ceb037f
Update pubspecs to null-safe dependencies (#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
8c5b0a6abf
use the dart analyze command to analyze source (#22212) 2020-10-29 18:46:52 -07:00
Zachary Anderson
b54bb88f00
Migrate runZoned to runZonedGuarded (#22198) 2020-10-29 11:02:35 -07:00
Ferhat
0747f2f4b1
[web] Fix 3d transforms for html backend (#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
890f016207
[web] Implement ClipOp.difference (#21901) 2020-10-17 00:09:41 -07:00
nturgut
3b2da6be9f
[web] enabling firefox screenshot tests. adding to documentation (#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
38d8ebaa46
E2e screenshot tests2 (#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
83e18142e8
chrome driver for chrome 86 (#21705) 2020-10-08 13:41:05 -07:00
Yegor
de7c0b9b81
Respect the --debug option in Firefox (#21438) 2020-10-02 18:17:02 -07:00
nturgut
d877b830cb
[web] enable ios safari screenshot tests (#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
3d0f12974d
[web] Add canUpdateAsMatch to PersistedPlatformView. (#21313) 2020-09-23 21:47:02 -07:00
nturgut
6e42b54d59
creating test result directory before running tests (#21324)
* creating test result directory. adding a prepare method to test runner

* addressing reviewer comments
2020-09-22 12:51:14 -07:00