[Laszlo-dev] this lztest test is failing in swf8
P T Withington
ptw at laszlosystems.com
Fri Dec 11 05:37:28 PST 2009
Yes. For unknown reasons swf8 has always gotten this wrong. And apparently the Flash player has maintained this error for backwards compatibility. So, looking at the requested runtime is the right thing.
On 2009-12-10, at 22:29, Henry Minsky wrote:
> // TODO: [2005-11-02 ptw] (Flash 8) Fails in Flash 8.24
> var flashVersion = lz.Browser.getVersion();
> if ((! flashVersion) || flashVersion < 8 || flashVersion > 10) {
> LzTestManager.assertNotSame(NaN, NaN, "NaN !== NaN");
> }
>
> In a SWF8 app (running in the Flash 10 player), NaN === NaN is in fact
> true. If you compile the
> app for SWF10, NaN !== NaN.
>
> I guess looking at lz.Browser.getVersion() is not the right thing, mebbe
> this should look for $runtime == "swf8"
> for this special case?
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com
More information about the Laszlo-dev
mailing list