Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pietermees authored and timdp committed Jan 30, 2017
1 parent ecc458b commit de2a2bb
Show file tree
Hide file tree
Showing 21 changed files with 2,198 additions and 48 deletions.
155 changes: 155 additions & 0 deletions test/fixtures/strict/iab/vast2Nonlinear.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="overlay-1">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750100</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-1">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D0]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-2">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750092</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-2">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D1]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-3">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750094</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-3">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D2]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-4">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750091</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-4">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D3]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-5">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5748118</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-5">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D4]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-6">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750088</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-6">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D5]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-7">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5700028</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-7">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D6]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-8">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750098</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-8">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D7]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-9">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5750097</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-9">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D8]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
<Ad id="overlay-10">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5700030</AdTitle>
<Creatives>
<Creative>
<NonLinearAds>
<NonLinear apiFramework="VPAID" height="60" width="380" id="overlay-10">
<StaticResource creativeType="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3D3%26HI%3D567|overlay|372934318%26AI%3D9]]></StaticResource>
</NonLinear>
</NonLinearAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>


38 changes: 38 additions & 0 deletions test/fixtures/strict/iab/vast2RegularLinear.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="preroll-1">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5748406</AdTitle>
<Impression id="blah"><![CDATA[http://b.scorecardresearch.com/b?C1=1&C2=6000003&C3=0000000200500000197000000&C4=us&C7=http://www.scanscout.com&C8=scanscout.com&C9=http://www.scanscout.com&C10=xn&rn=-103217130]]></Impression>
<Creatives>
<Creative>
<Linear>
<Duration>00:00:30</Duration>
<TrackingEvents>
</TrackingEvents>
<VideoClicks>
<ClickThrough id="scanscout"><![CDATA[http://www.target.com]]></ClickThrough>
</VideoClicks>
<MediaFiles>
<MediaFile height="396" width="600" bitrate="496" type="video/x-flv" delivery="progressive"><![CDATA[http://media.scanscout.com/ads/partner1_a1d1fbbc-c4d4-419f-b6c8-e9db63fd4491.flv]]></MediaFile>
</MediaFiles>
</Linear>
</Creative>
<Creative>
<CompanionAds>
<Companion height="250" width="300" id="555750">
<HTMLResource><![CDATA[<A onClick="var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=555750&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=1&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true';" HREF="http://target.com" target="_blank">
<IMG SRC="http://media.scanscout.com/ads/target300x250Companion.jpg" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</A>
<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=555750&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=736e6b13bad531dc476bc3612749bc35&admode=preroll&PRI=-4827170214961170629&RprC=0&ADsn=17&VcaI=192,197&RrC=1&VgI=736e6b13bad531dc476bc3612749bc35&AVI=142&Ust=ma&Uctry=us&CI=1223187&AC=4&PI=567&Udma=506&ADI=5748406&VclF=true" height="1" width="1">
]]></HTMLResource>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>


33 changes: 33 additions & 0 deletions test/fixtures/strict/iab/vast2VPAIDLinear.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="preroll-1">
<InLine>
<AdSystem>2.0</AdSystem>
<AdTitle>5773100</AdTitle>
<Creatives>
<Creative>
<Linear>
<Duration>00:00:01</Duration>
<MediaFiles>
<MediaFile height="270" width="370" type="application/x-shockwave-flash"><![CDATA[http://static.scanscout.com/ads/vpaidad3.swf?adData=http%3A//app.scanscout.com/ssframework/adStreamJSController.xml%3Fa%3Dgetadscheduleforcontent%26PI%3D567%26scheduleVersion%3Dnull%26HI%3D567|preroll|7496075541100999745%26AI%3D0]]></MediaFile>
</MediaFiles>
</Linear>
</Creative>
<Creative>
<CompanionAds>
<Companion height="250" width="300" id="573242">
<HTMLResource><![CDATA[<A onClick="var i= new Image(1,1); i.src='http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=0&RC=0&SmC=2&CbM=1.0E-5&VI=44cfc3b2382300cb751ba129fe51f46a&admode=preroll&PRI=7496075541100999745&RprC=5&ADsn=20&VcaI=192,197&RrC=1&VgI=44cfc3b2382300cb751ba129fe51f46a&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true';" HREF="http://vaseline.com" target="_blank">
<IMG SRC="http://media.scanscout.com/ads/vaseline300x250Companion.jpg" BORDER=0 WIDTH=300 HEIGHT=250 ALT="Click Here">
</A>
<img src="http://app.scanscout.com/ssframework/log/log.png?a=logitemaction&RI=573242&CbC=1&CbF=true&EC=1&RC=0&SmC=2&CbM=1.0E-5&VI=44cfc3b2382300cb751ba129fe51f46a&admode=preroll&PRI=7496075541100999745&RprC=5&ADsn=20&VcaI=192,197&RrC=1&VgI=44cfc3b2382300cb751ba129fe51f46a&AVI=142&Ust=ma&Uctry=us&CI=1247549&AC=4&PI=567&Udma=506&ADI=5773100&VclF=true" height="1" width="1">]]>
</HTMLResource>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>



50 changes: 50 additions & 0 deletions test/fixtures/strict/iab/vast_inline_linear.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="601364">
<InLine>
<AdSystem>Acudeo Compatible</AdSystem>
<AdTitle>VAST 2.0 Instream Test 1</AdTitle>
<Description>VAST 2.0 Instream Test 1</Description>
<Error>http://myErrorURL/error</Error>
<Impression>http://myTrackingURL/impression</Impression>
<Creatives>
<Creative AdID="601364">
<Linear>
<Duration>00:00:30</Duration>
<TrackingEvents>
<Tracking event="creativeView">http://myTrackingURL/creativeView</Tracking>
<Tracking event="start">http://myTrackingURL/start</Tracking>
<Tracking event="midpoint">http://myTrackingURL/midpoint</Tracking>
<Tracking event="firstQuartile">http://myTrackingURL/firstQuartile</Tracking>
<Tracking event="thirdQuartile">http://myTrackingURL/thirdQuartile</Tracking>
<Tracking event="complete">http://myTrackingURL/complete</Tracking>
</TrackingEvents>
<VideoClicks>
<ClickThrough>http://www.tremormedia.com</ClickThrough>
<ClickTracking>http://myTrackingURL/click</ClickTracking>
</VideoClicks>
<MediaFiles>
<MediaFile delivery="progressive" type="video/x-flv" bitrate="500" width="400" height="300" scalable="true" maintainAspectRatio="true">http://cdnp.tremormedia.com/video/acudeo/Carrot_400x300_500kb.flv</MediaFile>
</MediaFiles>
</Linear>
</Creative>
<Creative AdID="601364-Companion">
<CompanionAds>
<Companion width="300" height="250">
<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/Blistex1.jpg</StaticResource>
<TrackingEvents>
<Tracking event="creativeView">http://myTrackingURL/firstCompanionCreativeView</Tracking>
</TrackingEvents>

<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
</Companion>
<Companion width="728" height="90">
<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
54 changes: 54 additions & 0 deletions test/fixtures/strict/iab/vast_inline_nonlinear.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="602678">
<InLine>
<AdSystem>Acudeo Compatible</AdSystem>
<AdTitle>NonLinear Test Campaign 1</AdTitle>
<Description>NonLinear Test Campaign 1</Description>
<Survey>http://mySurveyURL/survey</Survey>
<Error>http://myErrorURL/error</Error>
<Impression>http://myTrackingURL/impression</Impression>
<Creatives>
<Creative AdID="602678-NonLinear">
<NonLinearAds>
<TrackingEvents>
<Tracking event="creativeView">http://myTrackingURL/nonlinear/creativeView</Tracking>
<Tracking event="expand">http://myTrackingURL/nonlinear/expand</Tracking>
<Tracking event="collapse">http://myTrackingURL/nonlinear/collapse</Tracking>
<Tracking event="acceptInvitation">http://myTrackingURL/nonlinear/acceptInvitation</Tracking>
<Tracking event="close">http://myTrackingURL/nonlinear/close</Tracking>
</TrackingEvents>
<NonLinear height="50" width="300" minSuggestedDuration="00:00:15">
<StaticResource creativeType="image/jpeg">
http://demo.tremormedia.com/proddev/vast/50x300_static.jpg
</StaticResource>
<NonLinearClickThrough>http://www.tremormedia.com</NonLinearClickThrough>
</NonLinear>
<NonLinear height="50" width="450" minSuggestedDuration="00:00:20">
<StaticResource creativeType="image/jpeg">
http://demo.tremormedia.com/proddev/vast/50x450_static.jpg
</StaticResource>
<NonLinearClickThrough>http://www.tremormedia.com</NonLinearClickThrough>
</NonLinear>
</NonLinearAds>
</Creative>
<Creative AdID="602678-Companion">
<CompanionAds>
<Companion width="300" height="250">
<StaticResource creativeType="application/x-shockwave-flash">http://demo.tremormedia.com/proddev/vast/300x250_companion_1.swf</StaticResource>

<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
</Companion>
<Companion width="728" height="90">
<StaticResource creativeType="image/jpeg">http://demo.tremormedia.com/proddev/vast/728x90_banner1.jpg</StaticResource>
<TrackingEvents>
<Tracking event="creativeView">http://myTrackingURL/secondCompanion</Tracking>
</TrackingEvents>
<CompanionClickThrough>http://www.tremormedia.com</CompanionClickThrough>
</Companion>
</CompanionAds>
</Creative>
</Creatives>
</InLine>
</Ad>
</VAST>
43 changes: 43 additions & 0 deletions test/fixtures/strict/iab/vast_wrapper_linear_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<VAST version="2.0">
<Ad id="602833">
<Wrapper>
<AdSystem>Acudeo Compatible</AdSystem>
<VASTAdTagURI>http://demo.tremormedia.com/proddev/vast/vast_inline_linear.xml</VASTAdTagURI>
<Error>http://myErrorURL/wrapper/error</Error>
<Impression>http://myTrackingURL/wrapper/impression</Impression>
<Creatives>
<Creative AdID="602833">
<Linear>
<TrackingEvents>
<Tracking event="creativeView">http://myTrackingURL/wrapper/creativeView</Tracking>
<Tracking event="start">http://myTrackingURL/wrapper/start</Tracking>
<Tracking event="midpoint">http://myTrackingURL/wrapper/midpoint</Tracking>
<Tracking event="firstQuartile">http://myTrackingURL/wrapper/firstQuartile</Tracking>
<Tracking event="thirdQuartile">http://myTrackingURL/wrapper/thirdQuartile</Tracking>
<Tracking event="complete">http://myTrackingURL/wrapper/complete</Tracking>
<Tracking event="mute">http://myTrackingURL/wrapper/mute</Tracking>
<Tracking event="unmute">http://myTrackingURL/wrapper/unmute</Tracking>
<Tracking event="pause">http://myTrackingURL/wrapper/pause</Tracking>
<Tracking event="resume">http://myTrackingURL/wrapper/resume</Tracking>
<Tracking event="fullscreen">http://myTrackingURL/wrapper/fullscreen</Tracking>
</TrackingEvents>
</Linear>
</Creative>
<Creative>
<Linear>
<VideoClicks>
<ClickTracking>http://myTrackingURL/wrapper/click</ClickTracking>
</VideoClicks>
</Linear>
</Creative>
<Creative AdID="602833-NonLinearTracking">
<NonLinearAds>
<TrackingEvents>
</TrackingEvents>
</NonLinearAds>
</Creative>
</Creatives>
</Wrapper>
</Ad>
</VAST>
Loading

0 comments on commit de2a2bb

Please sign in to comment.