Skip to content

test(render): cover 180-degree rotation preserving orientation - #154

Open
UnrulyBad11 wants to merge 1 commit into
browser-use:mainfrom
UnrulyBad11:add-portrait-180-rotation-test
Open

test(render): cover 180-degree rotation preserving orientation#154
UnrulyBad11 wants to merge 1 commit into
browser-use:mainfrom
UnrulyBad11:add-portrait-180-rotation-test

Conversation

@UnrulyBad11

@UnrulyBad11 UnrulyBad11 commented Sep 4, 2026

Copy link
Copy Markdown

is_portrait_source() only swaps width/height for quarter-turn rotations (90/270); a half-turn (180) should leave a landscape source landscape but that path wasn't covered by a test. This adds a regression test for it.

🤖 Generated with Claude Code


Summary by cubic

Adds a regression test for is_portrait_source() to verify a 180-degree rotation does not change orientation. The function only swaps width/height for quarter-turn rotations (90/270), but that half-turn path wasn't covered by a test.

Written for commit 1b33757. Summary will update on new commits.

Review in cubic

is_portrait_source() only swaps width/height for quarter-turn
rotations (90/270); a half-turn (180) should leave a landscape
source landscape. Add a regression test for that case.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant