mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
feat(skins): complete visual component CRUD authoring
This commit is contained in:
1 parent
3fd8e76a98
commit
f2e5695bb6
30 files changed
+1858
-511
No files matched your search
@@ -213,6 +213,14 @@ test("skin plugin rejects undeclared permissions, arbitrary paths, and executabl
|
||||
const externalSvgPaint = validDocument();
|
||||
externalSvgPaint.components[0].root.children![0].attributes = { fill: "url(https://example.invalid/payload.svg#paint)" };
|
||||
errorCode(() => parseSkinPluginDocument(externalSvgPaint), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
|
||||
|
||||
const skinOwnedPopover = validDocument();
|
||||
skinOwnedPopover.components[0].root.children![0].attributes = { popover: "manual" };
|
||||
errorCode(() => parseSkinPluginDocument(skinOwnedPopover), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
|
||||
|
||||
const skinOwnedPopoverTrigger = validDocument();
|
||||
skinOwnedPopoverTrigger.components[0].root.children![0].attributes = { popovertarget: "host-editor" };
|
||||
errorCode(() => parseSkinPluginDocument(skinOwnedPopoverTrigger), "SKIN_PLUGIN_ATTRIBUTE_INVALID");
|
||||
});
|
||||
|
||||
test("skin plugin restricts repeated fields to the selected collection", () => {
|
||||
|
||||
Reference in new issue
Block a user