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 b3bbbc9b_e116_d62e_1f9c_49d81b1b077e["default.test()"] 0c2278f8_e98f_2633_beab_8d9f4b6aa50e["_config.js"] b3bbbc9b_e116_d62e_1f9c_49d81b1b077e -->|defined in| 0c2278f8_e98f_2633_beab_8d9f4b6aa50e style b3bbbc9b_e116_d62e_1f9c_49d81b1b077e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-legacy/samples/inline-style-directive-update-object-property/_config.js lines 8–23
test({ assert, target, window, component }) {
const p = target.querySelector('p');
ok(p);
const styles = window.getComputedStyle(p);
assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
assert.equal(styles.fontSize, '12px');
{
component.modify = true;
const p = target.querySelector('p');
ok(p);
const styles = window.getComputedStyle(p);
assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
assert.equal(styles.fontSize, '50px');
}
}
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/inline-style-directive-update-object-property/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-legacy/samples/inline-style-directive-update-object-property/_config.js at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free