gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11283: Add manual test for unloadMo


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11283: Add manual test for unloadMovie. Looks interesting, but isn't automated.
Date: Sat, 18 Jul 2009 16:39:20 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11283
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Sat 2009-07-18 16:39:20 +0200
message:
  Add manual test for unloadMovie. Looks interesting, but isn't automated.
modified:
  testsuite/misc-ming.all/loadMovieTest.c
=== modified file 'testsuite/misc-ming.all/loadMovieTest.c'
--- a/testsuite/misc-ming.all/loadMovieTest.c   2009-04-15 11:24:05 +0000
+++ b/testsuite/misc-ming.all/loadMovieTest.c   2009-07-18 14:39:20 +0000
@@ -141,7 +141,7 @@
                "  var lastUrlComponent = 
this._url.substring(this._url.lastIndexOf('/')+1);"
                //"  _root.note('last component of _url is '+lastUrlComponent);"
                "  _root.check_equals(lastUrlComponent, _level0.expectLoaded, 
'%s:%d');"
-               "  _root.check_equals(this.getDepth(), -16377);"
+               "  _root.check_equals(this.getDepth(), -16376);"
                "  _root.check_equals(this.getBytesLoaded(), 
this.getBytesTotal());"
                "  _root.check(this.getBytesLoaded() > 0);" /* assuming 
something was loaded here */
                "  _root.note('bytesLoaded: '+this.getBytesLoaded());"
@@ -253,7 +253,7 @@
 
        dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(mediadir), 
10, 0, 0, 800, 600);
        it = SWFMovie_add(mo, (SWFBlock)dejagnuclip);
-       SWFDisplayItem_moveTo(it, 0, 250);
+       SWFDisplayItem_moveTo(it, 0, 270);
        SWFMovie_nextFrame(mo); 
 
        /*****************************************************
@@ -302,6 +302,10 @@
                                " art.clear(); "
                                ));
 
+       add_button(mo, 50, 240, "Unload", newSWFAction(
+                               " _root.coverart.unloadMovie();"
+                               ));
+
        /*****************************************************
         *
         * Add the coverart clip


reply via email to

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