[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi... |
Date: |
Tue, 17 Jul 2007 09:33:58 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/07/17 09:33:58
Modified files:
. : ChangeLog
testsuite/actionscript.all: MovieClip.as
Log message:
* testsuite/actionscript.all/MovieClip.as: more tests, all passed.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3744&r2=1.3745
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.75&r2=1.76
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3744
retrieving revision 1.3745
diff -u -b -r1.3744 -r1.3745
--- ChangeLog 17 Jul 2007 08:00:29 -0000 1.3744
+++ ChangeLog 17 Jul 2007 09:33:57 -0000 1.3745
@@ -1,5 +1,9 @@
2007-07-17 Zou Lunkai <address@hidden>
+ * testsuite/actionscript.all/MovieClip.as: more tests, all passed.
+
+2007-07-17 Zou Lunkai <address@hidden>
+
* testsuite/misc-ming.all/key_event_test5.c: make tests not dependent
on the time of a key press, better self-contained.
* testsuite/actionscript.all/MovieClip.as: fix unsafe floating number
Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -b -r1.75 -r1.76
--- testsuite/actionscript.all/MovieClip.as 17 Jul 2007 08:00:30 -0000
1.75
+++ testsuite/actionscript.all/MovieClip.as 17 Jul 2007 09:33:57 -0000
1.76
@@ -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.75 2007/07/17 08:00:30 zoulunkai Exp $";
+rcsid="$Id: MovieClip.as,v 1.76 2007/07/17 09:33:57 zoulunkai Exp $";
#include "check.as"
@@ -254,6 +254,69 @@
check(mc._xmouse != undefined);
check(mc._xscale != undefined);
+#if OUTPUT_VERSION >= 6
+
+// focused test on _* properties
+check_equals(typeof(mc._x), 'number');
+checks(!mc.hasOwnProperty("_x"));
+checks(!mc.__proto__.hasOwnProperty("_x"));
+checks(!MovieClip.prototype.hasOwnProperty("_x"));
+
+check_equals(typeof(mc._y), 'number');
+checks(!mc.hasOwnProperty("_y"));
+checks(!mc.__proto__.hasOwnProperty("_y"));
+checks(!MovieClip.prototype.hasOwnProperty("_y"));
+
+check_equals(typeof(mc._height), 'number');
+checks(!mc.hasOwnProperty("_height"));
+checks(!mc.__proto__.hasOwnProperty("_height"));
+checks(!MovieClip.prototype.hasOwnProperty("_height"));
+
+check_equals(typeof(mc._width), 'number');
+checks(!mc.hasOwnProperty("_width"));
+checks(!mc.__proto__.hasOwnProperty("_width"));
+checks(!MovieClip.prototype.hasOwnProperty("_width"));
+
+check_equals(typeof(mc._xscale), 'number');
+checks(!mc.hasOwnProperty("_xscale"));
+checks(!mc.__proto__.hasOwnProperty("_xscale"));
+checks(!MovieClip.prototype.hasOwnProperty("_xscale"));
+
+check_equals(typeof(mc._yscale), 'number');
+checks(!mc.hasOwnProperty("_yscale"));
+checks(!mc.__proto__.hasOwnProperty("_yscale"));
+checks(!MovieClip.prototype.hasOwnProperty("_yscale"));
+
+check_equals(typeof(mc._xmouse), 'number');
+checks(!mc.hasOwnProperty("_xmouse"));
+checks(!mc.__proto__.hasOwnProperty("_xmouse"));
+checks(!MovieClip.prototype.hasOwnProperty("_xmouse"));
+
+check_equals(typeof(mc._ymouse), 'number');
+checks(!mc.hasOwnProperty("_ymouse"));
+checks(!mc.__proto__.hasOwnProperty("_ymouse"));
+checks(!MovieClip.prototype.hasOwnProperty("_ymouse"));
+
+check_equals(typeof(mc._rotation), 'number');
+checks(!mc.hasOwnProperty("_rotation"));
+checks(!mc.__proto__.hasOwnProperty("_rotation"));
+checks(!MovieClip.prototype.hasOwnProperty("_rotation"));
+
+check_equals(typeof(mc._totalframes), 'number');
+checks(!mc.hasOwnProperty("_totalframes"));
+checks(!mc.__proto__.hasOwnProperty("_totalframes"));
+checks(!MovieClip.prototype.hasOwnProperty("_totalframes"));
+
+checks(!mc.hasOwnProperty("_target"));
+checks(!mc.hasOwnProperty("_url"));
+checks(!mc.hasOwnProperty("_target"));
+checks(!mc.hasOwnProperty("_soundbuftime"));
+checks(!mc.hasOwnProperty("_focusrect"));
+checks(!mc.hasOwnProperty("_framesloaded"));
+checks(!mc.hasOwnProperty("_lockroot"));
+checks(!mc.hasOwnProperty("_highquality"));
+#endif //if OUTPUT_VERSION >= 6
+
//----------------------------------------------
// Test createEmptyMovieClip
//----------------------------------------------