public void AllowScripts_SetsAllowScriptsToTrue() { var builder = new CspSandboxBuilder(); builder.AllowScripts(); CspSandboxOptions options = builder.BuildOptions(); Assert.True(options.AllowScripts); }
public void AllowSameOrigin_SetsAllowSameOriginToTrue() { var builder = new CspSandboxBuilder(); builder.AllowSameOrigin(); CspSandboxOptions options = builder.BuildOptions(); Assert.True(options.AllowSameOrigin); }
public void AllowPopupsToEscapeSandbox_SetsAllowPopupsToEscapeSandboxToTrue() { var builder = new CspSandboxBuilder(); builder.AllowPopupsToEscapeSandbox(); CspSandboxOptions options = builder.BuildOptions(); Assert.True(options.AllowPopupsToEscapeSandbox); }
public void AllowPresentation_SetsAllowPresentationToTrue() { var builder = new CspSandboxBuilder(); builder.AllowPresentation(); CspSandboxOptions options = builder.BuildOptions(); Assert.True(options.AllowPresentation); }
public void AllowPointerLock_SetsAllowPointerLockToTrue() { var builder = new CspSandboxBuilder(); builder.AllowPointerLock(); CspSandboxOptions options = builder.BuildOptions(); Assert.True(options.AllowPointerLock); }