@@ -918,7 +918,7 @@ describes.realWin('amp-a4a', {amp: true}, (env) => {
918
918
a4a . onLayoutMeasure ( ) ;
919
919
await a4a . layoutCallback ( ) ;
920
920
verifyCachedContentIframeRender ( a4aElement , TEST_URL , true ) ;
921
- expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . equal ( "sync-xhr 'none';" ) ;
921
+ expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . include ( "sync-xhr 'none';" ) ;
922
922
} ) ;
923
923
924
924
it ( 'should set feature policy for attribution-reporting when supported' , async ( ) => {
@@ -929,8 +929,9 @@ describes.realWin('amp-a4a', {amp: true}, (env) => {
929
929
a4a . onLayoutMeasure ( ) ;
930
930
await a4a . layoutCallback ( ) ;
931
931
verifyCachedContentIframeRender ( a4aElement , TEST_URL , true ) ;
932
- expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . equal (
933
- "sync-xhr 'none';attribution-reporting 'src';"
932
+ expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . include ( "sync-xhr 'none';" ) ;
933
+ expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . include (
934
+ "attribution-reporting 'src';"
934
935
) ;
935
936
} ) ;
936
937
@@ -942,7 +943,10 @@ describes.realWin('amp-a4a', {amp: true}, (env) => {
942
943
a4a . onLayoutMeasure ( ) ;
943
944
await a4a . layoutCallback ( ) ;
944
945
verifyCachedContentIframeRender ( a4aElement , TEST_URL , true ) ;
945
- expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . equal ( "sync-xhr 'none';" ) ;
946
+ expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . include ( "sync-xhr 'none';" ) ;
947
+ expect ( a4a . iframe . getAttribute ( 'allow' ) ) . to . not . include (
948
+ "attribution-reporting 'src';"
949
+ ) ;
946
950
} ) ;
947
951
} ) ;
948
952
0 commit comments