mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-21 09:54:09 +01:00
Setting a File object's length truncates or pads the file, and setting readonly or hidden changes it, but script.check reported no outside category for those assignments. It now reports file.write and filesWritten for them: plain and compound assignment, ++ and -- before or after, and the property name as a string literal in brackets. A new integration test lists every global and member the script host adds to the JavaScript engine (the own properties of the global object, of each object or function it holds and of each function's prototype, compared with a plain engine) and fails when one has no row. Each name that reaches outside the document has a probe script, and the test checks that script.check gives it the expected outside id. vc is listed as not checked: script.check reads scripts written for the reference app's scripting, and what vc.run does depends on the command. The test also checks that the checker lists every preprocessor directive the host reads, through the new DirectiveName::ALL. File object properties: https://extendscript.docsforadobe.dev/file-system-access/file-object/
40 lines
1.0 KiB
Rust
40 lines
1.0 KiB
Rust
//! Integration tests: one test binary for the crate, one module per area.
|
||
// Unwrapping and panicking on failure is fine here, unlike in shipped code (AGENTS.md › Robustness).
|
||
#![allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)]
|
||
|
||
#[path = "../support/affinity_docs.rs"]
|
||
mod affinity_docs;
|
||
#[path = "../../../affinity/tests/support/text_fixture.rs"]
|
||
mod text_fixture;
|
||
|
||
mod affinity_features;
|
||
mod affinity_local;
|
||
mod align_automatic_reference;
|
||
mod artboard_click;
|
||
mod beyond_canvas;
|
||
mod clear_commands;
|
||
mod compound_attributes;
|
||
mod copy_direct_selection;
|
||
mod delete_path_pieces;
|
||
mod dimensions;
|
||
mod eyedropper_sources;
|
||
mod find_replace_paras;
|
||
mod inline_text;
|
||
mod js_lexer_vs_scriptcheck;
|
||
mod known_bugs;
|
||
mod lossy_overwrite;
|
||
mod model_based;
|
||
mod param_keys;
|
||
mod paste_many;
|
||
mod pen_click_after_smooth;
|
||
mod pen_endpoint_picking;
|
||
mod pen_rubber_band;
|
||
mod ruler_guide_nodes;
|
||
mod ruler_guide_perf;
|
||
mod ruler_origin;
|
||
mod script_host_vs_scriptcheck;
|
||
mod selection_commands;
|
||
mod stroke_visibility;
|
||
mod text_stroke_scale;
|
||
mod three_d_light_color;
|