This might be just on my system, but with the latest SVN version of AS2LIB UnitTest, assertThrows was always failing when published with AS2ANT/MTASC but would work when published with Flash 8 IDE.
By adding "catch (e:Error)" instead of "catch (e)" in org.as2lib.test.unit.info.ThrowsAssertion.execute() the assertThrows method worked with MTASC. Perhaps a problem with MTASC?
Maybe it's something with my local environment but I haven't had other problems with MTASC before (using 1.12).
Bobby
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This might be just on my system, but with the latest SVN version of AS2LIB UnitTest, assertThrows was always failing when published with AS2ANT/MTASC but would work when published with Flash 8 IDE.
By adding "catch (e:Error)" instead of "catch (e)" in org.as2lib.test.unit.info.ThrowsAssertion.execute() the assertThrows method worked with MTASC. Perhaps a problem with MTASC?
Maybe it's something with my local environment but I haven't had other problems with MTASC before (using 1.12).
Bobby