[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi... |
Date: |
Wed, 03 Oct 2007 13:01:22 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/10/03 13:01:22
Modified files:
. : ChangeLog
testsuite/actionscript.all: MovieClip.as
Log message:
* testsuite/actionscript.all/MovieClip.as: Test effects of
unload
on clip bounds (confirms we should clean the drawable on
unload).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4507&r2=1.4508
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.93&r2=1.94
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4507
retrieving revision 1.4508
diff -u -b -r1.4507 -r1.4508
--- ChangeLog 3 Oct 2007 10:36:01 -0000 1.4507
+++ ChangeLog 3 Oct 2007 13:01:21 -0000 1.4508
@@ -1,5 +1,10 @@
2007-10-03 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/MovieClip.as: Test effects of unload
+ on clip bounds (confirms we should clean the drawable on unload).
+
+2007-10-03 Sandro Santilli <address@hidden>
+
* testsuite/actionscript.all/MovieClip.as:
more extensive tests for soft references, confirming current
gnash behaviour being unbreaked.
Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -b -r1.93 -r1.94
--- testsuite/actionscript.all/MovieClip.as 3 Oct 2007 10:36:01 -0000
1.93
+++ testsuite/actionscript.all/MovieClip.as 3 Oct 2007 13:01:22 -0000
1.94
@@ -20,7 +20,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: MovieClip.as,v 1.93 2007/10/03 10:36:01 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.94 2007/10/03 13:01:22 strk Exp $";
#include "check.as"
@@ -1070,6 +1070,24 @@
check_equals(b.yMin, 10);
check_equals(b.yMax, 40);
+// Check effects of unload on bounds
+// TODO: test this with bounds defined by SWF tags !
+container.onUnload = function() {};
+container_ref = container;
+container.removeMovieClip();
+check_equals(typeof(container), 'movieclip');
+check_equals(typeof(container_ref.getBounds), 'function');
+b = container.getBounds();
+check_equals(b.xMin, 6710886.35);
+check_equals(b.xMax, 6710886.35);
+check_equals(b.yMin, 6710886.35);
+check_equals(b.yMax, 6710886.35);
+b = container_ref.getBounds();
+check_equals(b.xMin, 6710886.35);
+check_equals(b.xMax, 6710886.35);
+check_equals(b.yMin, 6710886.35);
+check_equals(b.yMax, 6710886.35);
+
#endif // OUTPUT_VERSION >= 6
//----------------------------------------------
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi..., Sandro Santilli, 2007/10/25