Skip to content

docs: <test> takes no width or height - #469

Merged
laszlobalint merged 2 commits into
masterfrom
docs/test-without-width-height
Nov 16, 2026
Merged

laszlobalint merged 2 commits into
masterfrom
docs/test-without-width-height

Conversation

@laszlobalint

@laszlobalint laszlobalint commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

The docs and the templates showed <test width="…" height="…">. The Editor and CLI reject both attributes, and the test runner never used them. As a result, kapa.ai recommended them, and agents copied them from AGENTS.md into the tests they write (for example <test width="800" height="480">), and those tests failed validation.

Changes

  • docs/syntax/testing.mdx: the example is a plain <test>. The page now says that <test> takes no attributes and that a test runs at the display size of the project.xml target.
  • templates/common/AGENTS.md: the component-test example is a plain <test>. The five project copies are synced.
  • templates/basic/tests/README.md: the example is a plain <test>, and the note about canvas size now says that a test has no size of its own.
  • templates/basic/tests/test_theme_toggle.xml: a plain <test>.

Why the attributes go

  • The released Editor/CLI (2.1.x) already reject width and height on <test>. staging briefly accepted them, and that is reverted in the Editor PR linked below.
  • lv_xml's test runner ignores the attributes of the <test> element.
  • The Editor and CLI size a test by the display of the target in project.xml.

Editor change: https://github.com/lvgl-private/editor/pull/1718

🤖 Generated with Claude Code

The testing docs, AGENTS.md and the basic template's tests showed
<test width="…" height="…">. The Editor and CLI reject both attributes, and
the test runner never used them: a test runs at the display size of the
project.xml target. The examples taught kapa.ai and agents (through
AGENTS.md) to write tests that fail validation.

- docs/syntax/testing.mdx: the example is a plain <test>, and the page says
  where the size comes from
- AGENTS.md (and its synced copies): the component-test example is a plain
  <test>
- templates/basic/tests: README example and note, and test_theme_toggle.xml

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@laszlobalint laszlobalint self-assigned this Nov 16, 2026
@laszlobalint laszlobalint added documentation Improvements or additions to documentation autocomplete labels Nov 16, 2026

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 9 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread docs/syntax/testing.mdx Resolved
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@laszlobalint
laszlobalint merged commit 4df91fd into master Nov 16, 2026
6 checks passed
@laszlobalint
laszlobalint deleted the docs/test-without-width-height branch November 16, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autocomplete documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant