kahntang / as3corelib

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

Add UnitTest for JPGEncoder class #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We need to add a unit test for the JPGEncoder class:

com.adobe.images.JPGEncoder

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

GoogleCodeExporter commented 9 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 9 years ago

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

GoogleCodeExporter commented 9 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 9 years ago

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