[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all Key.as Mouse.a...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all Key.as Mouse.a... |
Date: |
Wed, 29 Aug 2007 18:50:20 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/08/29 18:50:20
Modified files:
testsuite/actionscript.all: Key.as Mouse.as Selection.as
Stage.as TextField.as
Log message:
Add broadcastMessage to the checks for of ASBroadcaster-created
functions
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Key.as?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Mouse.as?cvsroot=gnash&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Selection.as?cvsroot=gnash&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Stage.as?cvsroot=gnash&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.19&r2=1.20
Patches:
Index: Key.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Key.as,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Key.as 29 Aug 2007 18:38:35 -0000 1.2
+++ Key.as 29 Aug 2007 18:50:19 -0000 1.3
@@ -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.2 2007/08/29 18:38:35 strk Exp $";
+rcsid="$Id: Key.as,v 1.3 2007/08/29 18:50:19 strk Exp $";
#include "check.as"
@@ -34,11 +34,11 @@
// Methods
#if OUTPUT_VERSION > 5
- 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
+ check_equals(typeof(Key.addListener), 'function');
+ check_equals(typeof(Key.removeListener), 'function');
+ xcheck_equals(typeof(Key.broadcastMessage), 'function');
xcheck(Key.hasOwnProperty("_listeners"));
xcheck_equals(typeof(Key._listeners), 'object');
xcheck(Key._listeners instanceof Array);
Index: Mouse.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Mouse.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- Mouse.as 29 Aug 2007 18:38:35 -0000 1.12
+++ Mouse.as 29 Aug 2007 18:50:20 -0000 1.13
@@ -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.12 2007/08/29 18:38:35 strk Exp $";
+rcsid="$Id: Mouse.as,v 1.13 2007/08/29 18:50:20 strk Exp $";
#include "check.as"
@@ -35,12 +35,11 @@
#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
+ check_equals ( typeof(Mouse.removeListener), 'function' );
+ check_equals ( typeof(Mouse.addListener), 'function' );
+ xcheck_equals( typeof(Mouse.broadcastMessage), 'function' );
xcheck(Mouse.hasOwnProperty("_listeners"));
xcheck_equals(typeof(Mouse._listeners), 'object');
xcheck(Mouse._listeners instanceof Array);
Index: Selection.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Selection.as,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- Selection.as 29 Aug 2007 18:38:35 -0000 1.11
+++ Selection.as 29 Aug 2007 18:50:20 -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: Selection.as,v 1.11 2007/08/29 18:38:35 strk Exp $";
+rcsid="$Id: Selection.as,v 1.12 2007/08/29 18:50:20 strk Exp $";
#include "check.as"
@@ -55,14 +55,11 @@
// Methods added in version 6
#if OUTPUT_VERSION >= 6
-// test the Selection::addListener method
-check_equals (typeof(Selection.addListener), 'function');
-
-// 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
+ check_equals (typeof(Selection.addListener), 'function');
+ check_equals (typeof(Selection.removeListener), 'function');
+ xcheck_equals(typeof(Selection.broadcastMessage), 'function');
xcheck(Selection.hasOwnProperty("_listeners"));
xcheck_equals(typeof(Selection._listeners), 'object');
xcheck(Selection._listeners instanceof Array);
Index: Stage.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Stage.as,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- Stage.as 29 Aug 2007 18:38:35 -0000 1.14
+++ Stage.as 29 Aug 2007 18:50:20 -0000 1.15
@@ -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.14 2007/08/29 18:38:35 strk Exp $";
+rcsid="$Id: Stage.as,v 1.15 2007/08/29 18:50:20 strk Exp $";
#include "check.as"
@@ -33,13 +33,12 @@
#if OUTPUT_VERSION > 5
-// test the Stage::addlistener method
+// Stage was implicitly initialized by ASBroadcaster.initialize !
+// See http://www.senocular.com/flash/tutorials/listenersasbroadcaster/?page=2
check_equals (typeof(Stage.addListener), 'function');
-// test the Stage::removelistener method
check_equals (typeof(Stage.removeListener), 'function');
+xcheck_equals(typeof(Stage.broadcastMessage), '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);
Index: TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- TextField.as 29 Aug 2007 18:38:35 -0000 1.19
+++ TextField.as 29 Aug 2007 18:50:20 -0000 1.20
@@ -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.19 2007/08/29 18:38:35 strk Exp $";
+rcsid="$Id: TextField.as,v 1.20 2007/08/29 18:50:20 strk Exp $";
#include "check.as"
@@ -31,14 +31,15 @@
check_equals(typeof(TextField.prototype.getTextFormat), 'function');
check_equals(typeof(TextField.prototype.setNewTextFormat), 'function');
check_equals(typeof(TextField.prototype.getNewTextFormat), 'function');
-check_equals(typeof(TextField.prototype.addListener), 'function');
-check_equals(typeof(TextField.prototype.removeListener), 'function');
check_equals(typeof(TextField.prototype.getDepth), 'function');
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
+ check_equals(typeof(TextField.prototype.addListener), 'function');
+ check_equals(typeof(TextField.prototype.removeListener), 'function');
+ xcheck_equals(typeof(TextField.prototype.broadcastMessage), 'function');
xcheck(TextField.prototype.hasOwnProperty("_listeners"));
xcheck_equals(typeof(TextField.prototype._listeners), 'object');
xcheck(TextField.prototype._listeners instanceof Array);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/actionscript.all Key.as Mouse.a...,
Sandro Santilli <=