feat(ads/seo/release): v1.2.0 with live Google Ads, isolated ad profile, ads.txt, and SEO/AEO/GEO optimization
This commit is contained in:
parent
a88aafa1e5
commit
0e568f1f0a
975 changed files with 130593 additions and 16783 deletions
42
tests/Paca.Tests/App/DesktopDeepLinkGateTests.cs
Normal file
42
tests/Paca.Tests/App/DesktopDeepLinkGateTests.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using Paca.App;
|
||||
using Paca.Mobile.Core;
|
||||
using Paca.Tests.Infrastructure;
|
||||
using Xunit;
|
||||
|
||||
namespace Paca.Tests.App;
|
||||
|
||||
public class DesktopDeepLinkGateTests
|
||||
{
|
||||
[Fact]
|
||||
public void Gate219_DesktopStartupModeParser_ExtractsDeepLinkArgument()
|
||||
{
|
||||
// Arrange
|
||||
var args = new[] { "paca://download?url=https%3A%2F%2Fexample.com%2Fvideo%2F999&format=mp4" };
|
||||
|
||||
// Act
|
||||
var success = DesktopStartupModeParser.TryExtractDeepLink(args, out var action);
|
||||
|
||||
// Assert
|
||||
Assert.True(success);
|
||||
Assert.NotNull(action);
|
||||
var downloadAction = Assert.IsType<PacaDownloadDeepLinkAction>(action);
|
||||
Assert.Equal("https://example.com/video/999", downloadAction.TargetUrl);
|
||||
Assert.Equal("mp4", downloadAction.Format);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Gate220_InstallerScript_Includes_PacaCustomProtocolRegistry()
|
||||
{
|
||||
var installerPath = Path.Combine(SourceTree.Root, "build", "installer.iss");
|
||||
Assert.True(File.Exists(installerPath), "installer.iss must exist");
|
||||
|
||||
var content = File.ReadAllText(installerPath);
|
||||
|
||||
// Protocol registration
|
||||
Assert.Contains(@"Software\Classes\paca", content);
|
||||
Assert.Contains(@"""URL Protocol""", content);
|
||||
Assert.Contains(@"Software\Classes\paca\shell\open\command", content);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue