mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-26 02:13:48 +00:00
Added a notice naming the page when a source opens without it (#1233)
This commit is contained in:
1 parent
e63e70a5cf
commit
deb75c8dd1
18 files changed
+447
-57
No files matched your search
@@ -37,4 +37,18 @@ public sealed class RuntimeInfoResponseTests
|
||||
Assert.That(response.RustVersion, Is.Null);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The sandbox of a Flatpak lets no page through to the program which opens a document. Everywhere else,
|
||||
/// the program decides, which the runtime learns only while opening the document.
|
||||
/// </summary>
|
||||
[TestCase(LinuxPackageType.FLATPAK, false)]
|
||||
[TestCase(LinuxPackageType.APP_IMAGE, true)]
|
||||
[TestCase(LinuxPackageType.NOT_APPLICABLE, true)]
|
||||
[TestCase(LinuxPackageType.UNKNOWN, true)]
|
||||
public void OnlyAFlatpakCannotOpenDocumentsAtAPage(LinuxPackageType packageType, bool canOpenAtPage)
|
||||
{
|
||||
var runtimeInfo = new RuntimeInfoResponse("/samples/work", "/samples/app/mindwork-ai-studio", packageType, InstallationKind.USER, null);
|
||||
Assert.That(runtimeInfo.CanOpenDocumentsAtPage, Is.EqualTo(canOpenAtPage));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user