makepad/platform/script/tests
Kevin Boos 62691a290e
Script derive: reload a field back to its own #[live] default (#1278)
When a reload/reapply/rebake didn't set a field, it got reset to its type's
default, not the default the field declares with `#[live(..)]`. So a new
widget and a reloaded one could disagree, e.g. a Label's
`#[live(Flow::right_wrap())] flow` became Flow's non-wrapping default after
any live edit or `request_script_reapply()`. That's why CalloutTooltip's
label stopped wrapping and just got cut off in narrow windows.

Now such a field goes back to its declared default, same as a new one would.
Fields without one still get their type's default.
2026-10-03 09:26:30 +02:00
..
allocation_limit.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
auto_close_eof.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
equality_fuel_bail.rs script: the Octoscript VM hardening -- execution caps, fuel and deadlines, heap/string/array/object limits, parser diagnostics and re-entrant dispatch, keeping a Makepad host's semantics and speed 2026-09-26 20:08:33 +02:00
execution_limits.rs script: the Octoscript VM hardening -- execution caps, fuel and deadlines, heap/string/array/object limits, parser diagnostics and re-entrant dispatch, keeping a Makepad host's semantics and speed 2026-09-26 20:08:33 +02:00
extra_arg_typecheck.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
fn_ref_callback.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
hook_scope.rs platform: topic hunks the per-commit assembly could not place, the Sep 2–15 dev PRs (#1208–#1236) as adapted to this tree, and the zero-warning chore 2026-09-15 13:40:33 +02:00
json_negative_numbers.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
math_aot.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
math_aot_fuzz.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
newline_call.rs platform: faster builds and sturdier runs -- #[derive(Script)] emits one helper call per field, studio-protocol no longer waits for script, an app's package dir, icons and bundle name rebuild only that app, MAKEPAD=gpusim builds again, and a contained panic on macOS no longer frees the windows under AppKit 2026-09-26 20:10:03 +02:00
on_render_emission.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
parse_error_capture.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
reload_defaults.rs Script derive: reload a field back to its own #[live] default (#1278) 2026-10-03 09:26:30 +02:00
short_circuit_args.rs script: Splash VM host contract and script_mod apply 2026-09-15 13:39:47 +02:00
trusted_host_defaults.rs script: the Octoscript VM hardening -- execution caps, fuel and deadlines, heap/string/array/object limits, parser diagnostics and re-entrant dispatch, keeping a Makepad host's semantics and speed 2026-09-26 20:08:33 +02:00
try_catch.rs script: the Octoscript VM hardening -- execution caps, fuel and deadlines, heap/string/array/object limits, parser diagnostics and re-entrant dispatch, keeping a Makepad host's semantics and speed 2026-09-26 20:08:33 +02:00