@@ -836,12 +836,15 @@ test('Node.appendChild: should rewrite a element with multiple children are supp
836
836
const a1 = window . WombatTestUtil . createUntamperedWithElement ( 'a' ) ;
837
837
const a2 = window . WombatTestUtil . createUntamperedWithElement ( 'a' ) ;
838
838
const a3 = window . WombatTestUtil . createUntamperedWithElement ( 'a' ) ;
839
+ const iframe = window . WombatTestUtil . createUntamperedWithElement ( 'iframe' ) ;
839
840
a1 . href = 'http://example1.com' ;
840
841
a2 . href = 'http://example2.com' ;
841
842
a3 . href = 'http://example3.com' ;
843
+ iframe . allow = 'fullscreen; clipboard-write' ;
842
844
div . appendChild ( a2 ) ;
843
845
div . appendChild ( a3 ) ;
844
846
div . appendChild ( a1 ) ;
847
+ div . appendChild ( iframe ) ;
845
848
return {
846
849
a1 : window . WombatTestUtil . getElementPropertyAsIs ( a1 , 'href' ) . endsWith (
847
850
'mp_/http://example1.com'
@@ -851,10 +854,12 @@ test('Node.appendChild: should rewrite a element with multiple children are supp
851
854
) ,
852
855
a3 : window . WombatTestUtil . getElementPropertyAsIs ( a3 , 'href' ) . endsWith (
853
856
'mp_/http://example3.com'
854
- )
857
+ ) ,
858
+ iframe : window . WombatTestUtil . getElementPropertyAsIs ( iframe , 'allow' )
859
+ === 'autoplay \'self\'; fullscreen \'self\'; fullscreen; clipboard-write' ,
855
860
} ;
856
861
} ) ;
857
- t . deepEqual ( result , { a1 : true , a2 : true , a3 : true } ) ;
862
+ t . deepEqual ( result , { a1 : true , a2 : true , a3 : true , iframe : true } ) ;
858
863
} ) ;
859
864
860
865
test ( 'Node.insertBefore: should rewrite a element with no children are supplied' , async t => {
0 commit comments