Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Minimal screenshot tool.#4074

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
isoos wants to merge2 commits intodart-lang:main
base:main
Choose a base branch
Loading
fromisoos:screenshot
Open

Conversation

@isoos
Copy link
Collaborator

  • Thetest_browser.dart and thescreenshot_util.dart is a slightly adjusted copy fromdart-lang/pub-dev. I think in the long term we may want to extract it into a utility package that could be imported by both projects.
  • Uses an end2end test and observes its output with a local http server (thus the index.json fetching also works).
  • Right now only a few random pages are selected, we should probably handpick a few more, or maybe even make it crawl the entire output, not sure about that part.
  • Screenshotting the search dropdown is TBD.
  • Comparison tool is TBD, I think we could just start with the tool frompub-dev (or again, extract it into a shared package).

@isoosisoos requested a review fromsigurdmJuly 4, 2025 17:21
runPubGet(testPackageToolError.path);
runPubGet(_testSkyEnginePackage.path);

if (isScreenshotDirSet) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

intentional?

Copy link
CollaboratorAuthor

@isoosisoosJul 7, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Yes. We want to run screenshots only when the output directory is set, regular tests should run without if - at least for now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

But the "then" branch is empty...

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ah, my bad, mobile view of the code needs more attention.

No, this is not intentional, a leftover, will fix it once I'm with a computer.

dart_style:^3.0.0
lints:">=5.0.0 <7.0.0"
matcher:^0.12.15
puppeteer:^3.18.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We might need to discuss if we want a non-dart-team dependency here (even if it is a dev-dependency)
cc@szakarias wdyt?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I was thinking to implement this as an external screenshotting tool, mostly because there is no natural integration point with browser-based tests like inpub-dev's integration tests, and maybepub-dev could reuse the tool as a library. wdyt?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@sigurdmsigurdmsigurdm left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@isoos@sigurdm

[8]ページ先頭

©2009-2025 Movatter.jp