mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Script checker: app.selectTool counts as the document model, not a feature only the reference app has
This commit is contained in:
1 parent
dae7cc0bc8
commit
24d91e2acf
3 files changed
+5
-5
No files matched your search
@@ -181,7 +181,7 @@ features! {
|
||||
ScriptuiDrawing "scriptui.drawing" Dialogs,
|
||||
ScriptuiPalette "scriptui.palette" HostOnly,
|
||||
ScriptuiWindow "scriptui.window" Dialogs,
|
||||
SelectTool "selectTool" HostOnly,
|
||||
SelectTool "selectTool" Dom,
|
||||
Socket "socket" HostOnly,
|
||||
UnitValue "unitValue" Language,
|
||||
Xml "xml" HostOnly,
|
||||
|
||||
@@ -1521,7 +1521,7 @@ fn declarations_past_a_limit_hold_from_where_they_stand() {
|
||||
fn application_methods_are_features_not_members() {
|
||||
let r = report("app.executeMenuCommand('acmecopyall');\napp.selectTool('acme');\n");
|
||||
assert!(r.members.is_empty(), "{:?}", r.members);
|
||||
assert_eq!(r.needs, [Need::MenuCommands, Need::HostOnly]);
|
||||
assert_eq!(r.needs, [Need::Dom, Need::MenuCommands]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
+3
-3
@@ -2563,9 +2563,9 @@ control character, in the first 8 KiB) or `tooLarge` (over 8 MiB). For a script,
|
||||
|
||||
- `needs` lists what the script needs from the app that runs it: `language` (the script language's own objects
|
||||
and directives, such as `$`, `alert`, `UnitValue`, `#target` and `#targetengine`), `dom` (the reference app's
|
||||
document model), `files`, `menuCommands`, `dialogs`, and `hostOnly` (features only the reference app has:
|
||||
palettes, BridgeTalk, sockets, native code, XMP, the XML object and E4X, operator overloading, reflection, actions
|
||||
and `selectTool`).
|
||||
document model, `app.selectTool` included), `files`, `menuCommands`, `dialogs`, and `hostOnly` (features only the
|
||||
reference app has: palettes, BridgeTalk, sockets, native code, XMP, the XML object and E4X, operator overloading,
|
||||
reflection and actions).
|
||||
- `directives` lists the `#include`, `#includepath`, `#script`, `#strict`, `#target` and `#targetengine` lines,
|
||||
and `targets` splits each `#target` line's application specifier into `app`, `instance`, `version` and
|
||||
`locale`. A directive is read where it starts a line, written `#name` or `//@name`.
|
||||
|
||||
Reference in new issue
Block a user