default.test() — svelte Function Reference
Architecture documentation for the default.test() function in _config.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 15cc1727_6aab_d807_2e87_f83284b963bf["default.test()"] 86082755_bed5_92b9_777f_c0c3e9f3e7c1["_config.js"] 15cc1727_6aab_d807_2e87_f83284b963bf -->|defined in| 86082755_bed5_92b9_777f_c0c3e9f3e7c1 style 15cc1727_6aab_d807_2e87_f83284b963bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/binding-input-text-deep/_config.js lines 19–51
test({ assert, component, target, window }) {
const input = target.querySelector('input');
ok(input);
assert.equal(input.value, 'alice');
const event = new window.Event('input');
input.value = 'bob';
input.dispatchEvent(event);
flushSync();
assert.htmlEqual(
target.innerHTML,
`
<input>
<p>hello bob</p>
`
);
const user = component.user;
user.name = 'carol';
component.user = user;
assert.equal(input.value, 'carol');
assert.htmlEqual(
target.innerHTML,
`
<input>
<p>hello carol</p>
`
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-legacy/samples/binding-input-text-deep/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/binding-input-text-deep/_config.js at line 19.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free