63 Commits

Author SHA1 Message Date
Mouad Debbar
22bbc3c3e0
[web] Fix text cutoff when rendering paragraphs on DomCanvas (#23638) 2021-01-13 13:39:01 -08:00
Mouad Debbar
4814b157d1
[web] Fix layout exception when text is null (#23653) 2021-01-13 11:54:02 -08:00
Mouad Debbar
497dcb5c2a
[web] Apply font-family and other styles to the paragraph element (#23596) 2021-01-11 15:34:01 -08:00
Mouad Debbar
a68c169850
[web] Fix more tests that are specific to DomParagraph (#23551) 2021-01-08 16:30:35 -08:00
Mouad Debbar
cbda3c08ea
[web] Fix tests in preparation for enabling new rich paragraph implementation (#23515) 2021-01-08 14:20:05 -08:00
Mouad Debbar
d941aefa61
[web] Rich text painting on bitmap canvas (#23136) 2020-12-17 18:19:02 -08:00
Mouad Debbar
ade75e08f6
[web] Rich paragraph getPositionForOffset (#23133) 2020-12-17 11:27:34 -08:00
Mouad Debbar
19950f576e
[web] Rich paragraph getBoxesForRange (#23098) 2020-12-16 18:09:48 -08:00
Mouad Debbar
acad21c190
[web] Tests for rich paragraph DOM (#23097) 2020-12-16 17:05:04 -08:00
Mouad Debbar
730ad8601b
[web] Calculate height and baseline for rich text (#23064) 2020-12-15 15:48:34 -08:00
Mouad Debbar
8ead1df40b
[web] Align offset for lines of rich text (#23043) 2020-12-14 13:23:03 -08:00
Mouad Debbar
5d0310fd7f
[web] Separate the height ruler from the other rulers (#22964) 2020-12-14 13:13:02 -08:00
Mouad Debbar
3a035ee044
[web] Add complex rich text test cases and fix them (#22948) 2020-12-11 11:28:49 -08:00
Mouad Debbar
da5b0f9b36
[web] Default styles for rich text (#22941) 2020-12-08 15:22:20 -08:00
Mouad Debbar
df30ffef4f
[web] Fix edge cases when force-breaking lines (#22910) 2020-12-08 13:30:41 -08:00
Mouad Debbar
a3ee6150e1
[web] Handle long text and ellipsis in rich text (#22873) 2020-12-07 13:28:14 -08:00
Mouad Debbar
6a5971dac7
[web] Initial rich measurement implementation (#22779) 2020-12-03 16:33:03 -08:00
Lasse R.H. Nielsen
105004dd2d
Stop using the List constructor. (#22793) 2020-12-02 11:53:01 -08:00
Mouad Debbar
587c023abf
[web] Add new line break type (prohibited) (#22771) 2020-11-30 13:05:10 -08:00
Ferhat
c81a2ecb58
[web]Update @dart annotation. Change shaders to allocate smaller canvas (#22481) 2020-11-13 13:55:32 -08:00
Mouad Debbar
f62b754e7f
[web] Better data structure to prepare for rich text measurement (#22442) 2020-11-11 15:49:24 -08:00
Mouad Debbar
10f06b5abf
[web] Implement style inheritance during paragraph construction (#22365) 2020-11-06 15:44:31 -08:00
Mouad Debbar
d3c0727907
[web] Split the EngineParagraph interface from the legacy implementation (#22307) 2020-11-06 12:23:35 -08:00
Konstantin Scheglov
cf376142ed
Ignore several import_of_legacy_library_into_null_safe (#22326) 2020-11-06 09:55:29 -08:00
Mouad Debbar
7a890f27ca
[web] Better format for line break tests (#20767) 2020-08-28 14:43:01 -07:00
Mouad Debbar
282792ad38
[web] Make word boundary consistent with native flutter (#20747) 2020-08-25 17:05:18 -07:00
nturgut
bb24b4938f
[web] Build unit tests with dart2js instead of build_runner (#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
Jason Simmons
9993228251
Fix web_ui warnings flagged by the next Dart analyzer update (#20524) 2020-08-14 13:29:50 -07:00
Mouad Debbar
cfd852892e
[web] Eagerly calculate relevant indices during line break detection (#20278) 2020-08-06 19:29:11 -07:00
Jason Simmons
02c11acc24
Add Dart 2.10 annotations to the web engine sources (#20019) 2020-07-24 15:56:17 -07:00
Mouad Debbar
86f1b645f3
[web][3/3] Handle surrogate during line break detection (#19745) 2020-07-15 12:29:52 -07:00
Mouad Debbar
480d3e72f9
[web][2/3] Implement rules of the line break algorithm (#19610) 2020-07-14 09:31:40 -07:00
Mouad Debbar
0ec6f6c3f2
[web][1/3] Start first batch of auto-generated (already passing) tests for line break (#19586) 2020-07-08 12:06:00 -07:00
Alexandre Ardhuin
218d98f4d8
Operator equals (#19303)
* use Object for operator==

* apply style guide for operator==
2020-06-30 23:16:31 +02:00
nturgut
03b7bad6d1
remove failing tests on safari (#18944) 2020-06-09 17:19:47 -07:00
Nurhan Turgut
1b3b4ec88f
skip font loading tests for safari (#18232) 2020-05-08 13:30:13 -07:00
Mouad Debbar
3e975147fd
[web] First batch of unit tests for line breaker (#18034) 2020-04-30 10:50:51 -07:00
Ferhat
cade0e90ca
[web] Batch systemFontChange messages (#17885)
* Batch systemFontChange messages
* Update test for async
2020-04-24 14:10:22 -07:00
Yegor
b2a7470748
Reland "add limited analysis options (#17332)" (#17374)
* Reland "add limited analysis options (#17332)"

This time I'm starting without Cirrus. Will add Cirrus serpartely from code changes.

This reverts commit 6d33ee1a2ca7d404ebd5cb434d8ab859bf8ac0b7.

* disable Cirrus analysis check
2020-03-27 11:06:10 -07:00
Chinmay Garde
6d33ee1a2c
Revert "add limited analysis options (#17332)" (#17368)
This reverts commit 5389159643fa26342580208b6a9de547ef4de406.
2020-03-27 02:38:50 -07:00
Yegor
5389159643
add limited analysis options (#17332)
add limited analysis options
2020-03-26 14:38:59 -07:00
Mouad Debbar
136a057f28
[web] Rename LineMetrics.text to LineMetrics.displayText (#16734) 2020-02-21 13:17:59 -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
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
Mouad Debbar
f88f7df960
[web] Unskip tests that are already passing in Safari (#16567) 2020-02-14 10:27:32 -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
1f4c593032 loadfontfromlist should send fontchange message to framework (#14805) 2020-01-16 17:03:04 -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
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