On Sat, Aug 15, 2009 at 08:56:31AM -0600, Rob Savoye <r...@welcomehome.org> wrote: > I haven't tried to keep up to date on as3compile this summer, as once > I created a new testsuite with Haxe in May, we kindof got stuck with it. > One issue is namely support for older swf versions. Haxe supports at > least back to v6. The advantage to this is that for an API testsuite, > which is basically what we have for ActionScript, can be used to cover > all swf versions from v6 to v10.
Yes, that makes sense I guess. I see you're using the preprocessor a lot for cases where the API changed between AVM1 and AVM2, but use mostly the same code otherwise. I could imagine that Haxe is a bit behind when it comes to employing the whole spectrum of AS3.0 opcodes/features (like namespace visibility, prototypes of (slotted) inner functions, finally-style lookupswitch etc.), but that's stuff that doesn't have an AS2 equivalent, anyway. Speaking of which, as3compile has its own testsuite (only for syntax/bytecode, not for API), that generates all kinds of obscure (but working!) bytecode combinations. I wonder whether you can use that for testing Gnash's AVM2 implementation, too: http://git.swftools.org/lib/as3/ok/ > The other issue that you probably can address is we use the type > functions in Haxe pretty heavily in the test cases, as for API testing, > the return data type, parameters, etc... is all very important. Maybe > as3compile or obscure ActionScript commands can do the same thing, I > don't know. Well you can use the built-in typeof(), but that's about it. as3compile, unlike Haxe, doesn't have it's own API. Maybe whatever Haxe does for "Type.typeof" can be ported to vanilla ActionScript. Matthias _______________________________________________ Gnash-dev mailing list Gnash-dev@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-dev