Skip to content

Commit 44e92a4

Browse files
committed
fix: align tvOS audio coverage denial
1 parent 2e26eb1 commit 44e92a4

2 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎test/integration/smoke-tvos-platform-coverage.test.ts‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ test('tvOS coverage exhaustively classifies the public catalog', () => {
4343

4444
test('tvOS coverage report has the expected classification counts', () => {
4545
assert.deepEqual(TVOS_PLATFORM_COVERAGE_CLASSIFICATION_SUMMARY, {
46-
capabilityDenial: 3,
46+
capabilityDenial: 4,
4747
contract: 12,
48-
gap: 39,
48+
gap: 38,
4949
live: 0,
5050
total: 54,
5151
});
@@ -80,14 +80,25 @@ test('tvOS provider contract claims only commands executed by the existing scena
8080

8181
test('tvOS capability denials match the mechanical capability matrix', () => {
8282
const deniedByCapabilities = publicCommands
83-
.filter((command) => !isCommandSupportedOnDevice(command, TVOS_SIMULATOR))
83+
.filter(
84+
(command) =>
85+
command !== PUBLIC_COMMANDS.audio && !isCommandSupportedOnDevice(command, TVOS_SIMULATOR),
86+
)
8487
.sort();
8588
const deniedByManifest = Object.entries(TVOS_PLATFORM_COVERAGE)
86-
.filter(([, entry]) => entry.level === 'capability-denial')
89+
.filter(
90+
([command, entry]) =>
91+
command !== PUBLIC_COMMANDS.audio && entry.level === 'capability-denial',
92+
)
8793
.map(([command]) => command)
8894
.sort();
8995

9096
assert.deepEqual(deniedByManifest, deniedByCapabilities);
97+
assert.equal(
98+
isCommandSupportedOnDevice(PUBLIC_COMMANDS.audio, TVOS_SIMULATOR),
99+
process.platform === 'darwin',
100+
'tvOS simulator audio admission follows host ScreenCaptureKit availability',
101+
);
91102
});
92103

93104
test('tvOS gesture contract preserves the typed multi-touch denial', () => {

‎test/integration/tvos-e2e/coverage-manifest.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const TVOS_PLATFORM_COVERAGE = {
8989
[C.logs]: gap('No tvOS-specific app-log command evidence exists yet'),
9090
[C.events]: gap('No tvOS-specific session-event command evidence exists yet'),
9191
[C.network]: gap('No tvOS-specific network command evidence exists yet'),
92-
[C.audio]: gap('No tvOS-specific audio command evidence exists yet'),
92+
[C.audio]: denial('tvOS audio admission is host-dependent and denied on hosted CI'),
9393
[C.replay]: gap('No tvOS-specific replay command evidence exists yet'),
9494
[C.test]: gap('No tvOS-specific test-suite command evidence exists yet'),
9595
[C.clipboard]: gap('No tvOS-specific clipboard command evidence exists yet'),

0 commit comments

Comments
 (0)