[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all MovieClip.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all MovieClip.as |
Date: |
Fri, 06 Apr 2007 09:27:25 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/06 09:27:25
Modified files:
testsuite/actionscript.all: MovieClip.as
Log message:
don't test getDepth when in SWF5 mode
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.44&r2=1.45
Patches:
Index: MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -b -r1.44 -r1.45
--- MovieClip.as 6 Apr 2007 09:23:20 -0000 1.44
+++ MovieClip.as 6 Apr 2007 09:27:25 -0000 1.45
@@ -22,7 +22,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.44 2007/04/06 09:23:20 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.45 2007/04/06 09:27:25 strk Exp $";
#include "check.as"
@@ -440,6 +440,9 @@
// is statically defined, if it's not we'll raise a
// warning about it.
+// getDepth was not available as of SWF5
+#if OUTPUT_VERSION > 5
+
static_clip_name = "__shared_assets";
static_clip = eval(static_clip_name);
if ( typeof(static_clip) == 'movieclip' )
@@ -451,3 +454,5 @@
note("There is not '"+static_clip_name+"' clip statically-defined, so
we could not test getDepth() against it");
}
+
+#endif // OUTPUT_VERSION > 5