@@ -43,9 +43,9 @@ test('tvOS coverage exhaustively classifies the public catalog', () => {
4343
4444test ( '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
8181test ( '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
93104test ( 'tvOS gesture contract preserves the typed multi-touch denial' , ( ) => {
0 commit comments