From 13567a63ed8225c0cafafcd6f30e028700912e97 Mon Sep 17 00:00:00 2001 From: Joe Drew Date: Mon, 8 Mar 2010 14:01:07 -0500 Subject: [PATCH] Bug 547143 - Basic test. --- modules/libpr0n/test/reftest/jpeg/blue.jpg | Bin 0 -> 3937 bytes modules/libpr0n/test/reftest/jpeg/red.jpg | Bin 0 -> 3938 bytes .../libpr0n/test/reftest/jpeg/reftest.list | 24 ++++++++++++++++++ .../test/reftest/jpeg/webcam-simulacrum.mjpg | Bin 0 -> 7978 bytes .../jpeg/webcam-simulacrum.mjpg^headers^ | 3 +++ 5 files changed, 27 insertions(+) create mode 100644 modules/libpr0n/test/reftest/jpeg/blue.jpg create mode 100644 modules/libpr0n/test/reftest/jpeg/red.jpg create mode 100644 modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg create mode 100644 modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ diff --git a/modules/libpr0n/test/reftest/jpeg/blue.jpg b/modules/libpr0n/test/reftest/jpeg/blue.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b5fef5d26c51b4f19a5d76b6a31cef4f62362426 GIT binary patch literal 3937 zcmbuC2T)U47su}_sf3b31f+!C1f&NLDWQcTy@-vF1PCQS2*oalsNh;q5y1u`in?H< z$XXG_!lKywf-EBHx>&F)-+S;4y5G$1x3haQbMwo&=a&CD_hrr-xjoVYRQ!GTJ^+Fs z;D>#{$Rk<|pU0aM5*F;k5A?l<9qWsS(p>fc*7RJ+S{9BaLvLmgu@v%{r!$E%#g{kl|ry7wjyzs5aU9O zQ*-4RxP1s?R(uN1Fp9GbJ0QktI46$rq*0$ScE?$iCKX{m_?a_AX(F84FrX6*=Z7t-($>56AQ8cKxw#LE*2(XJQ-t}EFz4D@e}~aw8ZZ?{yUb7 z^RROQz)R1VE0ZK9$vGxMQ;xNh6PM#B&P^4|2MZfZEd1l`F9*lH{u=Pyj(NNe9nBfU?)+x^Husw?y&3@SFczD&-)!-l z0cc(ZfZE+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I#O-je%-`$Z2_9+W=Rd|3U9=`RgE4n4)mhc-n0#e3_pCE_V&}eqW9|W_k7@f==d1_^q1_X!!5R4$ant(L0`e3ZC@P{Uja~NduUmqBN6_U|H0wetiGw;WHv4 zv9eDn5+@`kNs_bV**Up+bLTB9SYEhd<*K5R4I4L=ZZ6wWUcIwsSMBaSb$bsTKGN9K z+;X(F?M(aGa~5~N{>KAP2A{rs_4>{5+js9je8hEO`56z{ zn6m%Tg#`hEQ4~Q*xGo6J#f8&Rg03}@;Sov_WHR+^mXcYX>#Gi)rs&&-4XMV?3=E;fQCR=@(?<31D|6XUR92Olgmc#{09qr!yEtr literal 0 HcmV?d00001 diff --git a/modules/libpr0n/test/reftest/jpeg/reftest.list b/modules/libpr0n/test/reftest/jpeg/reftest.list index b301091d3e9..76cbf2713e6 100644 --- a/modules/libpr0n/test/reftest/jpeg/reftest.list +++ b/modules/libpr0n/test/reftest/jpeg/reftest.list @@ -24,3 +24,27 @@ fails-if(MOZ_WIDGET_TOOLKIT=="windows") == jpg-gray.jpg jpg-gray.png fails-if(MOZ_WIDGET_TOOLKIT=="windows") == jpg-cmyk-1.jpg jpg-cmyk-1.png fails-if(MOZ_WIDGET_TOOLKIT=="windows") == jpg-cmyk-2.jpg jpg-cmyk-2.png == jpg-srgb-icc.jpg jpg-srgb-icc.png + +# webcam-simulacrum.mjpg is a hand-edited file containing red.jpg and blue.jpg, +# concatenated together with the relevant headers for +# multipart/x-mixed-replace. Specifically, with the headers in +# webcam-simulacrum.mjpg^headers^, the web browser will get the following: +# +# HTTP 200 OK +# Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG +# +# --BOUNDARYOMG\r\n +# Content-Type: image/jpeg\r\n +# \r\n +# (no newline) +# --BOUNDARYOMG\r\n +# Content-Type: image/jpeg\r\n +# \r\n +# (no newline) +# --BOUNDARYOMG--\r\n +# +# (The boundary is arbitrary, and just has to be defined as something that +# won't be in the text of the contents themselves. --$(boundary)\r\n means +# "Here is the beginning of a boundary," and --$(boundary)-- means "All done +# sending you parts.") +HTTP == webcam-simulacrum.mjpg blue.jpg diff --git a/modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg b/modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg new file mode 100644 index 0000000000000000000000000000000000000000..a593273c0e0dd743e172d5916b4d24013f4b371b GIT binary patch literal 7978 zcmeI0cT^ME7subsq>}(CL_kXD&4Ba(A|iMsy5^*a=`j1_WRYfKZf`5j5Q= z9H33$&F5sHP8eeiod9jGuaCkNu3rd;Gh+Jt7rH1zu0UrBL5J9iC0Qbr3sFwZRb*iH zL6lkXDHy{zjOFM8QC7z|ag-;G_>8hU#^N-Y81=!{oFPsVW88-F@|A96w2JszjmSh6qI|Lb;g3PfyDb%JKmijTsvS7+7vOXp$YQ zog5svHkN4m$J(EEj(Pn#V0%02@iKH|&meZkXWQqopKa;Y0Pu#;+^qR*i{Au5(^3G` zZ-2HKZU;c65P-&uU&O=4&P$R)k>PA*m7AMuDV2yUv4oDbzjPS${A2jyd6wAo#&XB; zk|YSTQxzO6siO4M^lUjND?=!faJauY#OT!jc;FYy`eGfE!Xyb2xkQFODiS?qQduIp z-7>LMAx)QYq_RKS;eR;ni#1?4dahAm)_el2SWBRKkp+;SI{=QU1dy3q(H>}Q-vY^z z0DJSIbo)ooJ<4eR$n`fDcs2SJ&XOi_Ff%_aoFmGX=U|M!6W9e0C_n|UfCkV32EY_> zfemm3F2Egl1Ah<C>xpw zErCj)Qm6u|f@+}y&|&B#bPno*Zb3cJ0Q3TS4D3%U=KI|4u@yKiEt)7 z2QGwH!R2r@ydQ3aPr?`AYj8LG1Rg>FqJ*#!J%o$!5Iz!^WX99e)ABV|Z6Qirr4 z?Z_3R8+nSn!x3;y90$k6x#0Y85jYVp6Sn}j5?6uSgKNaK;jZ9%aD%u{cp6>{Z-IBl z3-B}WiTGT65xxw+3*Uf0jlYKP!@njF2yB80!I9uch$bWx<`PyCwh-zGCkS1HUcwNO zNYo%&5M7D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!xvuC|4?b)F75efEscnN#f^?Z?l$o;`BT`P||2yz@;L94<6=*mpGiVE;oy zr$cAsMaPTHmz*xObWQ0xcG>On$tzx0&Ri8-y>M;XwXW+C*KgjKd87NL_~xTqskffr z&bj^J&Z4{cyT$iZ@0H!xx?laH*^l+z4&6t4ym~qwOn-2vSJeCDr>vho_7y&)JuK_j z?XP`g^XSNc&%mX}Up?-7lJVrj)1sg0KW~0!`s}-3+<)m9oH5wgCc#mbi&FL%GP zd(}D=GIalS+UpN*ir;Fy-Sdw3uKj(~`~DBPABi8!e>MBH7Zo|Mh_ZSSB4QB(T~8t?x$~s#!*A zkt(SnHG^9v%@Hg_eCH zu_PfeNt&Fc$j-^l%b&BPaB0!9U-G#XyEbl7cXB8y?*od-Fqx9bbrQDHX7OQ z;zE-E!8ja(BVutua4r@&9f#MmCNMlgiNZ{#zRhA1%X4kjfs*# zi~E=e1LI=c^NU=Ki}7(WJ}$<`#rU`w9~a}}VtibTkBjkfF+MKF$Hh4IC&O>V_@{^` Qp9WRBvwo+=xm+6MKQt?&kpKVy literal 0 HcmV?d00001 diff --git a/modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ b/modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ new file mode 100644 index 00000000000..f5e846508e5 --- /dev/null +++ b/modules/libpr0n/test/reftest/jpeg/webcam-simulacrum.mjpg^headers^ @@ -0,0 +1,3 @@ +HTTP 200 OK +Content-Type: multipart/x-mixed-replace;boundary=BOUNDARYOMG +Cache-Control: no-cache