refactor(script): move loose test files to src/tests/

This commit is contained in:
aiongg
2026-10-26 21:49:11 +00:00
parent 9526833a62
commit 48253ff5e1
12 changed files with 12 additions and 21 deletions
-21
View File
@@ -88,28 +88,7 @@ pub fn run_code(s: &mut Session, code: &str, name: &str) -> Outcome {
#[cfg(test)]
mod tests;
#[cfg(test)]
mod tests_callable;
#[cfg(test)]
mod tests_ease_presets;
#[cfg(test)]
mod tests_include;
#[cfg(test)]
mod tests_panels;
#[cfg(test)]
mod tests_tasks;
#[cfg(test)]
mod tests_ui;
#[cfg(test)]
mod tests_ui_more;
// #760: `$.evalFile` and `BridgeTalk`.
#[cfg(test)]
mod tests_evalfile;
// `/browser/…` is the web editor's file table, an absolute path on wasm; on Windows it has no
// drive, so the script runtime resolves it under the current drive, where the host holds nothing.
#[cfg(test)]
#[cfg(not(windows))]
mod tests_services;
#[cfg(test)]
mod tests_ui_mouse;
+12
View File
@@ -10,6 +10,18 @@ use serde_json::{Value, json};
use crate::{Outcome, run_code};
mod callable;
mod ease_presets;
mod include;
mod panels;
mod tasks;
mod ui;
mod ui_more;
mod evalfile;
#[cfg(not(windows))]
mod services;
mod ui_mouse;
fn session() -> Session {
let mut s = Session { expr: Some(Arc::new(effectcraft_expr::Expressions)), expr_check: Some(effectcraft_expr::check_syntax), ..Default::default() };
crate::install(&mut s);