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 f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1["default.test()"] c39af67b_86cf_0f5c_d015_26febb7d02cb["_config.js"] f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1 -->|defined in| c39af67b_86cf_0f5c_d015_26febb7d02cb 07d76165_84db_aa3e_f8fc_c7c9c3a10163["test()"] f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1 -->|calls| 07d76165_84db_aa3e_f8fc_c7c9c3a10163 f4a0c661_f2f9_0ec6_e74c_ee5f896de9fe["assert_ok()"] f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1 -->|calls| f4a0c661_f2f9_0ec6_e74c_ee5f896de9fe b6b50867_b82d_6e21_1ea5_f22e93a7c3af["equal()"] f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1 -->|calls| b6b50867_b82d_6e21_1ea5_f22e93a7c3af style f6a86199_eaf1_f6e3_2a11_9b9b9a4bbab1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/tests/runtime-browser/samples/inline-style-directive-precedence/_config.js lines 8–27
test({ assert, target, window, component }) {
const p = target.querySelector('p');
assert_ok(p);
const styles = window.getComputedStyle(p);
assert.equal(styles.color, 'rgb(255, 0, 0)');
assert.equal(styles.fontSize, '32px');
assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
assert.equal(styles.borderColor, 'rgb(0, 128, 0)');
component.foo = 'font-size: 50px; color: green;'; // Update style attribute
{
const p = target.querySelector('p');
assert_ok(p);
const styles = window.getComputedStyle(p);
assert.equal(styles.color, 'rgb(255, 0, 0)');
assert.equal(styles.fontSize, '32px');
assert.equal(styles.backgroundColor, 'rgb(0, 128, 0)');
assert.equal(styles.borderColor, 'rgb(0, 128, 0)');
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does default.test() do?
default.test() is a function in the svelte codebase, defined in packages/svelte/tests/runtime-browser/samples/inline-style-directive-precedence/_config.js.
Where is default.test() defined?
default.test() is defined in packages/svelte/tests/runtime-browser/samples/inline-style-directive-precedence/_config.js at line 8.
What does default.test() call?
default.test() calls 3 function(s): assert_ok, equal, test.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free