|
From: Luke B. <lb...@gm...> - 2005-07-03 22:09:40
|
---------- Forwarded message ----------
From: Luke Bayes <lb...@gm...>
Date: Jul 3, 2005 3:08 PM
Subject: Re: [osflash] ASUnit, MTASC, and Me
To: Open Source Flash Mailing List <os...@os...>
Cc: dpe...@cr...
Hey Guys,
I just caught this post and it looks like there are a couple bugs in
AsUnit related to the latest MTASC compiler.
I just fixed and checked in the Test.as warning in the cvs sources, if
it bothers you (as much as it would bother me!), feel free to remove
the import statement from that file in your local build, it will be
fixed in the next release.
As far as the error goes...
/home/dpetersen/workspace/test_ut/src/com/asunit/framework/Assert.as:98:
characters 5-22 : type error Object have no field equals
It loos like MTASC is not treating the Object object as a "dynamic"
class in this case.
I don't have FAME all set up on this system right now, so I can't
really test a fix. Could someone take a look at line 98 of the
com.asunit.framework.Assert class?
It looks to me like this statement:
if(assertion1.equals !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion1.equals(assertion2));
} else if(assertion2.equals !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion2.equals(assertion1));
} else {
addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D ass=
ertion2);
}
Might need to change to:
if(assertion1["equals"] !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion1["equals"](assertion2));
} else if(assertion2["equals"] !=3D undefined) {
addTestResult(String(msg), "assertEquals",
assertion2["equals"](assertion1));
} else {
addTestResult(String(msg), "assertEquals", assertion1 =3D=3D=3D ass=
ertion2);
}
Do the brackets work in MTASC?
Could you try pasting this into your local build and let me know if it work=
s?
Thanks for the heads up and sorry for the immense frustration!
Thanks,
Luke Bayes
www.asunit.com
|