Skip to content

Docs Code Sample

Tested Fixture

Code sample rendered example
Captured from the XSplit regression extension fixturedocs-code-sample.
Fixture
docs-code-sample
Element
xsplit-doc-code-sample
Selector
xsplit-doc-code-sample
Ready state
data-ready="true"

Expected text

  • xjs.ready
  • getVersion

Expected selectors

  • pre.language-javascript
  • code.language-javascript

Code samples should stay executable-looking and use the stable public API. Prefer examples that can also appear in smoke tests or fixture metadata so documentation does not drift from behavior.