bijilsandroid / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

Add UnitTest for PNGEncoder class #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need to add a unit test for the PNGEncoder class:

com.adobe.images.PNGEncoder

Original issue reported on code.google.com by mikechambers on 10 Jan 2007 at 8:26

GoogleCodeExporter commented 8 years ago
Note, I added a basic test case that just instantiates the class, in order to 
ensure
that it will compile.

Original comment by mikechambers on 24 Feb 2007 at 12:07

GoogleCodeExporter commented 8 years ago

Original comment by mikechambers on 24 Feb 2007 at 12:08

GoogleCodeExporter commented 8 years ago
We might be able to create a test that does the following:

1. grab of generate some bitmap data
2. encode it to PNG
3. have flash display / load it

I think that if the data is not a valid image, then Flash will throw an IOError,
which we could catch and know that it was not a valid PNG.

Not sure if this would work, but we should look into it.

Original comment by mikechambers on 24 Feb 2007 at 12:10

GoogleCodeExporter commented 8 years ago

Original comment by mikechambers on 7 Nov 2008 at 7:31