[Red5devs] echo string unit test

Robert Harris trebor at vlideshow.com
Wed Oct 22 12:36:25 PDT 2008


here is a new diff which:

   - turns on the tests i had turned off (doh!)
   - adds string echo tests strings for both AMF0 and AMF3
   - adds array echo tests strings for both AMF0 and AMF3

while making the array echo tests i found that under AMF0 the result  
array is returned embedded as the first element in yet another array.   
in AFM3 the result array is returned unvarnished.  from my reading of  
the documentation the AMF3 behavior appears to be the correct behavior  
and thus i structured the test such that the AFM0 test fails.  then i  
disabled the AMF0 test.

does anyone know the definitive answer on which array return behavior  
(AMF0 or AMF3) is correct?  does the AMF0 behavior get grandfathered in?

    -trebor


-------------- next part --------------
A non-text attachment was scrubbed...
Name: stringArrayTests.diff
Type: application/octet-stream
Size: 13457 bytes
Desc: not available
URL: <http://osflash.org/pipermail/red5devs_osflash.org/attachments/20081022/2671208c/attachment.obj>
-------------- next part --------------




On Oct 21, 2008, at 7:19 PM, Robert Harris wrote:

> find attached the diff which adds an AMF test calling the existing  
> echoString() method on the echo service. it should be applied to:
>
>   http://red5.googlecode.com/svn/flash/trunk/selftest
>
> i've liberally commented in hopes that this can provide a good, and  
> fairly simple, example of a test.
>
>   -trebor
>
> <echoStringTest.diff>
> _______________________________________________
> Red5devs mailing list
> Red5devs at osflash.org
> http://osflash.org/mailman/listinfo/red5devs_osflash.org



More information about the Red5devs mailing list