dom: Minor test improvements (#26913)
dom: Minor test improvements (#26913)

* dom: Add layout attr where needed in unit tests

* dom: Resolve another sinon warning

Expect another console error.

jridgewell/amphtml,rsimha-amp/amphtml,yandex-pcode/amphtml,danielrozenberg/amphtml,ampproject/amphtml,Gregable/amphtml,media-net/amphtml,jridgewell/amphtml,smartadserver/amphtml,adup-tech/amphtml,adup-tech/amphtml,lannka/amphtml,mhc-gh/amphtml,taboola/amphtml,cory-work/amphtml,honeybadgerdontcare/amphtml,jmadler/amphtml,mhc-gh/amphtml,honeybadgerdontcare/amphtml,smartadserver/amphtml,ampproject/amphtml,media-net/amphtml,zhouyx/amphtml,jridgewell/amphtml,sharethrough/amphtml,prateekbh/amphtml,media-net/amphtml,danielrozenberg/amphtml,Gregable/amphtml,adup-tech/amphtml,cory-work/amphtml,voyagegroup/amphtml,prateekbh/amphtml,danielrozenberg/amphtml,nexxtv/amphtml,jpettitt/amphtml,yandex-pcode/amphtml,mhc-gh/amphtml,jpettitt/amphtml,rsimha-amp/amphtml,cory-work/amphtml,ampproject/amphtml,voyagegroup/amphtml,yandex-pcode/amphtml,prateekbh/amphtml,media-net/amphtml,jpettitt/amphtml,voyagegroup/amphtml,nexxtv/amphtml,rsimha-amp/amphtml,jpettitt/amphtml,prateekbh/amphtml,taboola/amphtml,rsimha-amp/amphtml,adup-tech/amphtml,honeybadgerdontcare/amphtml,Gregable/amphtml,taboola/amphtml,taboola/amphtml,taboola/amphtml,jmadler/amphtml,mhc-gh/amphtml,smartadserver/amphtml,alanorozco/amphtml,media-net/amphtml,jpettitt/amphtml,Gregable/amphtml,jridgewell/amphtml,voyagegroup/amphtml,danielrozenberg/amphtml,zhouyx/amphtml,jmadler/amphtml,nexxtv/amphtml,jmadler/amphtml,prateekbh/amphtml,taboola/amphtml,rsimha-amp/amphtml,Gregable/amphtml,lannka/amphtml,rsimha-amp/amphtml,Gregable/amphtml,alanorozco/amphtml,taboola/amphtml,prateekbh/amphtml,media-net/amphtml,voyagegroup/amphtml,Gregable/amphtml,sharethrough/amphtml,ampproject/amphtml,ampproject/amphtml,nexxtv/amphtml,yandex-pcode/amphtml,jpettitt/amphtml,sharethrough/amphtml,zhouyx/amphtml,adup-tech/amphtml,sharethrough/amphtml,alanorozco/amphtml,cory-work/amphtml,alanorozco/amphtml,nexxtv/amphtml,honeybadgerdontcare/amphtml,zhouyx/amphtml,honeybadgerdontcare/amphtml,jridgewell/amphtml,smartadserver/amphtml,danielrozenberg/amphtml,Gregable/amphtml,jpettitt/amphtml,danielrozenberg/amphtml,alanorozco/amphtml,lannka/amphtml,jmadler/amphtml,jmadler/amphtml,ampproject/amphtml,alanorozco/amphtml,nexxtv/amphtml,cory-work/amphtml,lannka/amphtml,danielrozenberg/amphtml,yandex-pcode/amphtml,ampproject/amphtml,jridgewell/amphtml,smartadserver/amphtml,mhc-gh/amphtml,jridgewell/amphtml,smartadserver/amphtml,rsimha-amp/amphtml,cory-work/amphtml,yandex-pcode/amphtml,alanorozco/amphtml,mhc-gh/amphtml,yandex-pcode/amphtml,cory-work/amphtml,sharethrough/amphtml,media-net/amphtml,lannka/amphtml,ampproject/amphtml,alanorozco/amphtml,zhouyx/amphtml,zhouyx/amphtml,voyagegroup/amphtml,jpettitt/amphtml,lannka/amphtml,zhouyx/amphtml,danielrozenberg/amphtml,lannka/amphtml,sharethrough/amphtml,nexxtv/amphtml,prateekbh/amphtml,adup-tech/amphtml,mhc-gh/amphtml,voyagegroup/amphtml,media-net/amphtml,honeybadgerdontcare/amphtml,honeybadgerdontcare/amphtml,mhc-gh/amphtml