-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Write a text-decoration test at the dart:ui layer
#48101
[Impeller] Write a text-decoration test at the dart:ui layer
#48101
Conversation
|
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
|
It looks like the text isn't showing up in the goldens ... |
| expect(canvas.getSaveCount(), equals(6)); | ||
| }); | ||
|
|
||
| test('TextDecoration renders non-solid lines', () async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem that bad, you made it seem like this would be pretty hard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easy to write, hard to run :)
Yeah I'm guessing this is a PWD issue similar to what I was seeing locally - test assets are expected to be in a specific place. Let's look at this together tomorrow, unless @dnfield notices I did something wrong. |
|
New code up, should work both locally and on CI :) |
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits
|
@jonahwilliams I'm going to mark as auto-submit, but I'm happy to take additional comments post-submit. |
|
LGTM! |
|
Golden file changes are available for triage from new commit, Click here to view. |
|
The fonts are still showing up blank on Skia-gold, let me take a look again. |
| // However, Flutter opts-in to a Skia feature to render tabs as a single space. | ||
| // See: https://github.com/flutter/flutter/issues/79153 | ||
| final File file = File(path.join('flutter', 'testing', 'resources', 'RobotoSlab-VariableFont_wght.ttf')); | ||
| final File file = File(path.join(_flutterBuildPath, 'flutter', 'third_party', 'txt', 'assets', 'Roboto-Regular.ttf')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect this to be in a folder called fixtures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you want "./gen/flutter/impeller/fixtures/assets/Roboto-Regular.ttf"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But my deps is:
deps = [ "//flutter/third_party/txt:txt_fixtures" ]What does that have to do with the impeller folder?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ flutter % ls ../out/host_debug_unopt_arm64/gen/flutter/third_party/txt/assets
Roboto-Regular.ttfHmm....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is the right target specifically, but any test fixtures should be built to a target in the out directory that you can look up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if the file didn't exist, we could get a FileNotFoundError AFAICT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh yeah. Hmmm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, the decorations are showing up right 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, though that's also true if the font doesn't load (hey, I don't make the rules)
I'll take another look in a bit and add some FML_LOG statements and see if there is something obvious going wrong. Probably (?) using a font in a test that doesn't exist should be an error or at the very least an angry log statement.
|
Golden file changes are available for triage from new commit, Click here to view. |
@jonahwilliams @dnfield Turns out this is because the default font color is white on white on Skia gold, and had nothing to do with fonts. I'm now outputting blue and it looks good, PTAL. |
|
lol wonderful. Well now we know |
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…138759) flutter/engine@337ab58...7a31543 2023-11-20 [email protected] [Impeller] Write a text-decoration test at the `dart:ui` layer (flutter/engine#48101) 2023-11-20 [email protected] Roll Skia from 69213ba6f68a to 2bcc2e8682a6 (1 revision) (flutter/engine#48238) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Closes flutter/flutter#138501.
It would be nice to turn this into a test-fixture, and create a better local environment.
Here is how to run it locally: