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/Key....


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Key....
Date: Wed, 29 Aug 2007 18:38:35 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/08/29 18:38:35

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Key.as Mouse.as Selection.as 
                                    Stage.as TextField.as 

Log message:
                * testsuite/actionscript.all/: Key.as, Mouse.as, Selection.as,
                  Stage.as, TextField.as: check elements supposedly created
                  by implicit call to ASBroadcaster.initialize().
                  See bug #20832.
                  NOTE: for TextField.as also fixed a wrong expected result for
                  targets SWF8+

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4150&r2=1.4151
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Key.as?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Mouse.as?cvsroot=gnash&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Selection.as?cvsroot=gnash&r1=1.10&r2=1.11
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Stage.as?cvsroot=gnash&r1=1.13&r2=1.14
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.18&r2=1.19

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4150
retrieving revision 1.4151
diff -u -b -r1.4150 -r1.4151
--- ChangeLog   29 Aug 2007 17:54:09 -0000      1.4150
+++ ChangeLog   29 Aug 2007 18:38:34 -0000      1.4151
@@ -1,5 +1,14 @@
 2007-08-29 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/: Key.as, Mouse.as, Selection.as,
+         Stage.as, TextField.as: check elements supposedly created
+         by implicit call to ASBroadcaster.initialize().
+         See bug #20832.
+         NOTE: for TextField.as also fixed a wrong expected result for
+         targets SWF8+
+
+2007-08-29 Sandro Santilli <address@hidden>
+
        * testsuite/MovieTester.cpp (initTestingRenderers): add ARGB32 and
          ABGR32 renderers.
 

Index: testsuite/actionscript.all/Key.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Key.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/actionscript.all/Key.as   24 Jul 2007 14:19:32 -0000      1.1
+++ testsuite/actionscript.all/Key.as   29 Aug 2007 18:38:35 -0000      1.2
@@ -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: Key.as,v 1.1 2007/07/24 14:19:32 strk Exp $";
+rcsid="$Id: Key.as,v 1.2 2007/08/29 18:38:35 strk Exp $";
 
 #include "check.as"
 
@@ -33,12 +33,23 @@
 
 // Methods
 #if OUTPUT_VERSION > 5
-check_equals(typeof(Key.addListener), 'function');
-check_equals(typeof(Key.removeListener), 'function');
+
+ check_equals(typeof(Key.addListener), 'function');
+ check_equals(typeof(Key.removeListener), 'function');
+
+ // Key was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ xcheck(Key.hasOwnProperty("_listeners"));
+ xcheck_equals(typeof(Key._listeners), 'object');
+ xcheck(Key._listeners instanceof Array);
+
 #else // OUTPUT_VERSION <= 5
-check_equals(typeof(Key.addListener), 'undefined');
-check_equals(typeof(Key.removeListener), 'undefined');
+
+ check_equals(typeof(Key.addListener), 'undefined');
+ check_equals(typeof(Key.removeListener), 'undefined');
+
 #endif // OUTPUT_VERSION <= 5
+
 check_equals(typeof(Key.getAscii), 'function');
 check_equals(typeof(Key.getCode), 'function');
 check_equals(typeof(Key.isDown), 'function');

Index: testsuite/actionscript.all/Mouse.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Mouse.as,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- testsuite/actionscript.all/Mouse.as 8 Aug 2007 16:26:45 -0000       1.11
+++ testsuite/actionscript.all/Mouse.as 29 Aug 2007 18:38:35 -0000      1.12
@@ -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: Mouse.as,v 1.11 2007/08/08 16:26:45 strk Exp $";
+rcsid="$Id: Mouse.as,v 1.12 2007/08/29 18:38:35 strk Exp $";
 
 #include "check.as"
 
@@ -34,9 +34,17 @@
 check_equals ( typeof(Mouse.hide), 'function' );
 
 #if OUTPUT_VERSION > 5
+
 // test addListner/removeListener, added in SWF6
 check_equals ( typeof(Mouse.removeListener), 'function' );
 check_equals ( typeof(Mouse.addListener), 'function' );
+
+ // Mouse was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ xcheck(Mouse.hasOwnProperty("_listeners"));
+ xcheck_equals(typeof(Mouse._listeners), 'object');
+ xcheck(Mouse._listeners instanceof Array);
+
 #endif // OUTPUT_VERSION > 5
 
 

Index: testsuite/actionscript.all/Selection.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Selection.as,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/actionscript.all/Selection.as     26 Jul 2007 03:41:19 -0000      
1.10
+++ testsuite/actionscript.all/Selection.as     29 Aug 2007 18:38:35 -0000      
1.11
@@ -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: Selection.as,v 1.10 2007/07/26 03:41:19 strk Exp $";
+rcsid="$Id: Selection.as,v 1.11 2007/08/29 18:38:35 strk Exp $";
 
 #include "check.as"
 
@@ -61,5 +61,11 @@
 // test the Selection::removeListener method
 check_equals (typeof(Selection.removeListener), 'function'); 
 
+ // Selection was implicitly initialized by ASBroadcaster.initialize !
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ xcheck(Selection.hasOwnProperty("_listeners"));
+ xcheck_equals(typeof(Selection._listeners), 'object');
+ xcheck(Selection._listeners instanceof Array);
+
 #endif // OUTPUT_VERSION >= 6
 

Index: testsuite/actionscript.all/Stage.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Stage.as,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- testsuite/actionscript.all/Stage.as 3 Aug 2007 21:26:12 -0000       1.13
+++ testsuite/actionscript.all/Stage.as 29 Aug 2007 18:38:35 -0000      1.14
@@ -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: Stage.as,v 1.13 2007/08/03 21:26:12 strk Exp $";
+rcsid="$Id: Stage.as,v 1.14 2007/08/29 18:38:35 strk Exp $";
 
 #include "check.as"
 
@@ -38,6 +38,12 @@
 // test the Stage::removelistener method
 check_equals (typeof(Stage.removeListener), 'function');
 
+// Stage was implicitly initialized by ASBroadcaster.initialize !
+// See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+xcheck(Stage.hasOwnProperty("_listeners"));
+xcheck_equals(typeof(Stage._listeners), 'object');
+xcheck(Stage._listeners instanceof Array);
+
 listener = new Object;
 listener.onResize = function() {
        _root.note("Resize event received, args to handler: 
"+arguments.length+" Stage.width="+Stage.width+", Stage.height="+Stage.height);

Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- testsuite/actionscript.all/TextField.as     21 Aug 2007 14:42:12 -0000      
1.18
+++ testsuite/actionscript.all/TextField.as     29 Aug 2007 18:38:35 -0000      
1.19
@@ -19,7 +19,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: TextField.as,v 1.18 2007/08/21 14:42:12 strk Exp $";
+rcsid="$Id: TextField.as,v 1.19 2007/08/29 18:38:35 strk Exp $";
 
 #include "check.as"
 
@@ -37,6 +37,12 @@
 check_equals(typeof(TextField.prototype.removeTextField), 'function');
 check_equals(typeof(TextField.prototype.replaceSel), 'function');
 
+ // TextField.prototype was implicitly initialized by ASBroadcaster.initialize 
!
+ // See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
+ xcheck(TextField.prototype.hasOwnProperty("_listeners"));
+ xcheck_equals(typeof(TextField.prototype._listeners), 'object');
+ xcheck(TextField.prototype._listeners instanceof Array);
+
 // NOTE: the following will be true after a call to createTextField ! Seek 
forward to see..
 xcheck( !TextField.prototype.hasOwnProperty('background'));
 xcheck( !TextField.prototype.hasOwnProperty('backgroundColor'));
@@ -631,6 +637,11 @@
 check_equals(origTextWidth, tf.textWidth); 
 tf._width = 10;
 check_equals(tf._width, 10);
-xcheck_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by 
wordWrap
+
+#if OUTPUT_VERSION < 8
+ xcheck_equals(origTextWidth, tf.textWidth); // textWidth isn't influenced by 
wordWrap
+#else
+ check(origTextWidth > tf.textWidth); 
+#endif
 
 #endif // OUTPUT_VERSION > 5




reply via email to

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