Track Ticket 2616 unit test


#1

Here is the unit test diff for ticket 2616 that couldn’t be uploaded to Trac.


Index: Common.test.php
===================================================================
--- Common.test.php	(revision 5078)
+++ Common.test.php	(working copy)
@@ -752,6 +752,14 @@
 			// Google Images (advanced search)
 			'http://www.google.com/imgres?imgurl=http://www.softwaredevelopment.ca/software/wxtest-red.png&imgrefurl=http://www.softwaredevelopment.ca/wxtestrunner.shtml&usg=__feDWUbLINOfWzPieVKX1iN9uj3A=&h=432&w=615&sz=18&hl=en&start=0&zoom=1&tbnid=V8LgKlxE4zAJnM:&tbnh=143&tbnw=204&ei=w9apTdWzKoLEgQff27X9CA&prev=/images%3Fq%3Dbook%2Bsite:softwaredevelopment.ca%26um%3D1%26hl%3Den%26safe%3Doff%26client%3Dubuntu%26channel%3Dfs%26biw%3D1280%26bih%3D828%26as_st%3Dy%26tbm%3Disch&um=1&itbs=1&iact=hc&vpx=136&vpy=141&dur=19894&hovh=188&hovw=268&tx=124&ty=103&oei=w9apTdWzKoLEgQff27X9CA&page=1&ndsp=3&ved=1t:429,r:0,s:0'
 				=> array('name' => 'Google Images', 'keywords' => 'book site:softwaredevelopment.ca'),
+			
+			//Google Shopping
+			'http://www.google.com/search?q=inflatable+beer+pong+rack&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a#q=inflatable+beer+pong+rack&oe=utf-8&rls=org.mozilla:en-US:official&client=firefox-a&um=1&ie=UTF-8&tbo=u&tbm=shop&source=og&sa=N&hl=en&tab=wf&bav=on.2,or.r_gc.r_pw.&fp=f6d0fcb4d80942ce&biw=1024&bih=578'
+				=> array('name' => 'Google Shopping', 'keywords' => 'inflatable beer pong rack'),
 
 			// Google cache
 			'http://webcache.googleusercontent.com/search?q=cache:CD2SncROLs4J:piwik.org/blog/2010/04/piwik-0-6-security-advisory/+piwik+security&cd=1&hl=en&ct=clnk'



(vipsoft) #2

That’s not a likely referrer URL as the anchor/hash #… is usually excluded from the request.