gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Testcase for gnash-embedded


From: strk
Subject: Re: [Gnash-dev] Testcase for gnash-embedded
Date: Fri, 17 Nov 2006 15:48:39 +0100

On Tue, Nov 07, 2006 at 11:05:13AM +0100, Udo Giacomozzi wrote:
> Hi strk,
> 
> here's a new testcase. Code has been added to both buttons:
> 
> 
>         if (size == Math.round(size))
>                 trace("PASSED: 'size' variable is rounded ("+size+")");
>         else 
>                 trace("FAILED: 'size' variable is not rounded ("+size+")");

Anwering pretty late to this. Anyway, current HEAD now contains
a "shared library" for use by testcases via load or import tags.
It's called Dejagnu.swf and once you load it you can use

        _root.pass(str);
        _root.fail(str);
        _root.xpass(str);
        _root.xfail(str);
        _root.totals(); 

Note that since you'd be loading it you should make sure it is
initialized before use, you can use

        _root.dejagnu_module_initialized

as a semaphore for that.

Advantage of this approach is that you'd get "visual" traces for failures
and additionally normal traces for all failure/successes.

BTW, move the imported or loaded movie around to have it in some
non-disturbing place.

Hope that helps implementing new testcases.
See the ones online (actionscript only)

        http://www.gnu.org/software/gnash/testcases

--strk;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]