gnash-commit
[Top][All Lists]
Advanced

[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: Tue, 12 Dec 2006 19:46:18 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/12/12 19:46:18

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: MovieClip.as 

Log message:
                * testsuite/actionscript.all/MovieClip.as: some more
                  (verified) tests for MovieClip.useHandCursor.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1920&r2=1.1921
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.21&r2=1.22

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1920
retrieving revision 1.1921
diff -u -b -r1.1920 -r1.1921
--- ChangeLog   12 Dec 2006 18:14:00 -0000      1.1920
+++ ChangeLog   12 Dec 2006 19:46:18 -0000      1.1921
@@ -1,5 +1,10 @@
 2006-12-12 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/MovieClip.as: some more
+         (verified) tests for MovieClip.useHandCursor.
+
+2006-12-12 Sandro Santilli <address@hidden>
+
        * server/sprite_instance.cpp: stubbed all interfaces
          tested for existance in MovieClip.as (drawing api, mainly).
        * testsuite/actionscript.all/MovieClip.as: don't expect

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- testsuite/actionscript.all/MovieClip.as     12 Dec 2006 18:14:00 -0000      
1.21
+++ testsuite/actionscript.all/MovieClip.as     12 Dec 2006 19:46:18 -0000      
1.22
@@ -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.21 2006/12/12 18:14:00 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.22 2006/12/12 19:46:18 strk Exp $";
 
 #include "check.as"
 
@@ -168,6 +168,8 @@
 check_equals(mc.tabIndex, undefined);
 check_equals(mc.trackAsMenu, undefined);
 xcheck_equals(mc.useHandCursor, true);
+mc.useHandCursor = false;
+check_equals(mc.useHandCursor, false);
 check_equals(mc._alpha, 100);
 check(mc._currentframe != undefined);
 
@@ -217,6 +219,20 @@
 
 var mc3 = createEmptyMovieClip("mc3_mc", 50);
 check(mc3 != undefined);
+
+// By default useHandCursor is false in SWF5 and true in later versions
+#if OUTPUT_VERSION < 6
+check_equals(mc3.useHandCursor, false);
+#else
+xcheck_equals(mc3.useHandCursor, true);
+#endif
+// We add a mouse event handler, and expect this
+// to make useHandCursor true
+mc3.onMouseOver = function() { trace("over"); };
+xcheck_equals(mc3.useHandCursor, true);
+mc3.useHandCursor = false;
+check_equals(mc3.useHandCursor, false);
+
 check_equals(mc3_mc.getBytesLoaded(), 0);
 check_equals(mc3_mc.getBytesTotal(), 0);
 check_equals(mc3.getBytesLoaded(), 0);




reply via email to

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