120 Commits

Author SHA1 Message Date
Mouad Debbar
136a057f28
[web] Rename LineMetrics.text to LineMetrics.displayText (#16734) 2020-02-21 13:17:59 -08:00
Nurhan Turgut
941aee35bd
[web] add comment to skipped safari test (#16737)
* add comment to skipped safari test

* test not running semantics on Mac

* disable semantics test which is unreliable
2020-02-21 13:03:29 -08:00
Nurhan Turgut
ab0dd12975
[web] Running safari tests on LUCI (#16715)
* Safari font collection tests skip failing methods

* add a clear to the semantics test to make sure no DOM elements are leaking to the other tests

* fix semantics_helper_test. skip for semantics_test. teardown didn't work

* skip test, the skipped method run for 8 minutes according to the logs

* history tests methods runs multiple times. only run them on linux for now. they were also already failing in edge/windows
2020-02-21 09:03:13 -08:00
vsmenon
0ef67b5e74
opt out dart:ui from nnbd (#16473)
* opt out dart:ui from nnbd

* Annotate tests as well
2020-02-20 11:04:00 -08:00
Mouad Debbar
8dba815a73
[web] Paragraph.getBoxesForRange uses LineMetrics (#16625) 2020-02-19 09:56:57 -08:00
Yegor
48d64c13e4
update hash code logic on the web (#16624) 2020-02-18 12:29:17 -08:00
Nurhan Turgut
77c5812d48
[web] Skipping failing edge tests (#16626)
* making edge default test browser on windows. adding some skips (not all) for methods failing on edge

* skip failing tests. make egde default for testing

* skip one more test

* addressing reviewer comments. removing extra bat file
2020-02-18 09:36:04 -08:00
Ferhat
15e7f51b32
Implement Path extractPath, tangent APIs (#16599)
* Add pathMeasure
* Implement tangetAt
* add extractPath segment iterator
* Implement extractPath/chopCubicAt/chopQuadAt
* Wire up extractPath and add tests for cubic/quadratic
* Switch to interpolate on chopCubic
* addressed review comments
2020-02-14 13:29:27 -08:00
Mouad Debbar
f88f7df960
[web] Unskip tests that are already passing in Safari (#16567) 2020-02-14 10:27:32 -08:00
Mouad Debbar
fe63094d52
[web] Handle alignment correctly in Paragraph.getPositionForOffset (#16569) 2020-02-14 10:24:13 -08:00
Ferhat
cd77e78430
Fix drawRRect failure when shader is specified (#16601) 2020-02-14 09:08:28 -08:00
Yegor
8b0b6490ee
improve surface state assert error messages (#16595) 2020-02-14 08:04:31 -08:00
Mouad Debbar
99a265b030
[web] Fix edge cases in Paragraph.getPositionForOffset to match Flutter (#16557) 2020-02-12 13:42:52 -08:00
Nurhan Turgut
44e80fd619
skiping tests in Safari. LUCI recipe for Mac is ready. this is the only step left for stopping us running unit tests in Safari (#16550) 2020-02-11 15:31:57 -08:00
chunhtai
7e869faf52
Adds new route annoucement method. (#16523) 2020-02-10 13:59:02 -08:00
Yegor
1daba53187
Partially fix canvas vs text paint order when running on Blink/Webkit browsers (#16483)
fix canvas vs text paint order in Blink/Webkit
2020-02-10 13:41:50 -08:00
Mouad Debbar
41d50c220b
Reland #16206: "[web] Correct getPositionForOffset for multi-line paragraphs" (#16365) 2020-02-05 19:53:03 -08:00
Yegor
07f25c51ee
fix bad reference to maxDiffRatePercent (#16440)
* fix bad reference to maxDiffRatePercent

* back to 10%
2020-02-05 18:49:10 -08:00
Yegor
f34bc65bee
use percent for golden diff rates; tighten the values (#16430) 2020-02-05 15:53:45 -08:00
Ferhat
8f89bac4b7
[web] Fixes incorrect transform when context save and transforms are deferred. (#16412)
* Fix transform order in clipStack replay
2020-02-05 15:02:34 -08:00
Yegor
804dca62a1
Use bundled Roboto in all tests (#16218)
* Use bundled Roboto in all tests
2020-01-30 17:31:32 -08:00
Jason Simmons
1370c9d520
Revert "[web] Correct getPositionForOffset for multi-line paragraphs (#16206)" (#16268)
This reverts commit 4ac82f663170a8740c3d983c97fee42d2f3425d2.

This caused a regression in a framework test (material/text_field_splash_test.dart)
2020-01-30 16:06:35 -08:00
Mouad Debbar
4ac82f6631
[web] Correct getPositionForOffset for multi-line paragraphs (#16206) 2020-01-30 10:21:15 -08:00
Mouad Debbar
379295626d
[web] Text width should never exceed constraint width (#16152) 2020-01-28 16:23:04 -08:00
Ferhat
f30ff4fcbf
Use 2d matrix for transform to work around Safari clipping bug (#15976) 2020-01-24 20:40:12 -08:00
Nurhan Turgut
08d1f2af9f
[web] Calling platform message callback after copy (#15950)
* Calling platform message callback after copy

* addressing pr comments

* adding unit tests to clipbpard.dart
2020-01-24 15:35:03 -08:00
Ferhat
b22821a542
Optimize drawRRect to use dom_canvas (#15970) 2020-01-24 11:03:19 -08:00
Ferhat
3d5bbb4371
Implement Canvas drawPoints API for Html backend (#15870) 2020-01-21 16:37:41 -08:00
Ferhat
79f898e61d
Fix RRect hittest optimization to handle malformed corner radius (#15859) 2020-01-21 12:12:14 -08:00
Ferhat
8eebf82c74
Fix path.contains failure when devicepixelratio != 1.0 (#15743)
* Fix path contains failure due to devicepixelratio
2020-01-17 21:48:51 -08:00
Ferhat
55f022fc9c
Fix Color API, move toCss to helper functions (#15740)
* Fix Color API, move toCss to helper functions
* Move colorToCssString to engine
2020-01-17 16:05:08 -08:00
Ferhat
98c1aeaa3b
Clipping path fix for browsers that don't use correct units when applying clip-path css using svg (#15712) 2020-01-17 10:41:02 -08:00
chunhtai
1f4c593032 loadfontfromlist should send fontchange message to framework (#14805) 2020-01-16 17:03:04 -08:00
Yegor
8c855dba98
fix text blurriness in HTML-rendered text (#15649)
* fix text blurriness in HTML-rendered text
2020-01-15 14:20:28 -08:00
Mouad Debbar
09d892b3bf [web] Freeze window.defaultRouteName (#15565) 2020-01-15 13:03:03 -08:00
Mouad Debbar
6162c41d1b [web] Tests for browser history implementation (#15324) 2020-01-09 14:53:03 -08:00
Mouad Debbar
91a37d8799
Reland "[web] Calculate align offset for each paragraph line (LineMetrics.left)" (#14537) (#15151) 2020-01-08 15:08:12 -08:00
Ferhat
4979039ffe
Fix Path.from. (#15268)
* Fix Path.from to deep copy. Add regression test.
2020-01-08 12:48:35 -08:00
Ferhat
27a221d6d0
Refactor BitmapCanvas, lazily allocate canvas, fix image composition bug. (#15153)
* Refactor BitmapCanvas. Fix image compositing bug. Allocate canvas lazily
* Fix recording canvas test by restoring context save
* Update recording canvas test for drawColor to show multiply blend
2020-01-07 15:36:48 -08:00
Mouad Debbar
eb139936eb
[web] Fix right click issues (#15103) 2020-01-03 09:21:04 -08:00
Nurhan Turgut
42bb7c9eea
[web] fix leaking problem in tests for text editing. (#14582)
* fix leaking problem in tests for text editing. removing skips for firefox

* addressing pr comments
2019-12-20 15:27:40 -08:00
Yegor
33813929e3
[web] implement pushImageFilter (#14599)
implement pushImageFilter in the HTML and CanvasKit backends
2019-12-20 12:10:56 -08:00
Yegor
9b299f2c23
fix editable placement in a11y mode (#14581) 2019-12-20 12:09:54 -08:00
Ferhat
40b84fc193
Fix lint warnings across web_ui, add missing browserEngine case in text field. (#14535)
* Fix lint warnings across web_ui

* add textureCoordinates/indices getters for Vertices

* fix compositor indices
2019-12-19 17:39:33 -08:00
Chiung-Ming Huang
68d919670f Fix DOM-based ParagraphRuler.hitTest() (#14504)
* [web] Fix ParagraphRuler.hitTest

* [web] Add a test-case for paragraph.getPositionForOffset and nested TextSpans

* [web] Add a test-case for paragraph.getPositionForOffset and nested TextSpans

* [web] remove trailing spaces

* [web] avoid differences of overflow-wrap between chrome and firefox
2019-12-19 12:36:43 -05:00
Lau Ching Jun
0f90e6546b
Revert "[web] Calculate align offset for each paragraph line (LineMetrics.left) (#14537)" (#14569)
This reverts commit 1ecfdcb94ccf8a3c9d59b9e2c1ca7c8aa8d3a2d6.
2019-12-18 22:06:00 -08:00
Mouad Debbar
1ecfdcb94c
[web] Calculate align offset for each paragraph line (LineMetrics.left) (#14537) 2019-12-18 14:29:51 -08:00
Tong Mu
f2e841d50a
[Web] Fix pointer binding (#14378)
Refactors pointer_binding, fixes a few issues related to the pointer data converter in Web, and adds a number of tests for all three adapters.
2019-12-18 13:33:16 -08:00
chunhtai
988b8f149d Fix FontLoader does not remove the cache in web engine (#14536) 2019-12-18 10:58:01 -08:00
Nurhan Turgut
c216ba42b2
Calling onConnectionClosed when the input element is blurred (#14484)
* close connection call

* closing connection on blur

* remove the timer and check the window focus directly. address reviewer comments.

* addressing reviewer comments
2019-12-17 16:18:54 -08:00