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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text...
Date: Sat, 05 Jan 2008 15:40:14 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/01/05 15:40:14

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

Log message:
        Check that a textfield object is a listener of itself.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5318&r2=1.5319
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.39&r2=1.40

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5318
retrieving revision 1.5319
diff -u -b -r1.5318 -r1.5319
--- ChangeLog   5 Jan 2008 15:35:07 -0000       1.5318
+++ ChangeLog   5 Jan 2008 15:40:13 -0000       1.5319
@@ -1,5 +1,7 @@
 2008-01-05 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/TextField.as: check that a textfield
+         object is a listener of itself.
        * server/as_value.cpp: make soft references verbosity a compile-time
          option.
 

Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- testsuite/actionscript.all/TextField.as     19 Dec 2007 20:40:32 -0000      
1.39
+++ testsuite/actionscript.all/TextField.as     5 Jan 2008 15:40:14 -0000       
1.40
@@ -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.39 2007/12/19 20:40:32 strk Exp $";
+rcsid="$Id: TextField.as,v 1.40 2008/01/05 15:40:14 strk Exp $";
 
 #include "check.as"
 
@@ -45,6 +45,7 @@
  xcheck(TextField.prototype.hasOwnProperty("_listeners"));
  xcheck_equals(typeof(TextField.prototype._listeners), 'object');
  xcheck(TextField.prototype._listeners instanceof Array);
+ xcheck_equals(TextField.prototype._listeners.length, 0);
 
 // NOTE: the following will be true after a call to createTextField ! Seek 
forward to see..
 xcheck( !TextField.prototype.hasOwnProperty('background'));
@@ -114,6 +115,9 @@
 #endif
 
 check_equals(typeof(tf), 'object');
+xcheck(tf.hasOwnProperty('_listeners'));
+xcheck_equals(tf._listeners.length, 1); // adds self to the listeners
+xcheck_equals(tf._listeners[0], tf); // adds self to the listeners set
 
 // NOTE: the following were false before the call to createTextField ! Seek 
backward to see..
 check( TextField.prototype.hasOwnProperty('background'));
@@ -808,9 +812,9 @@
 
 
 #if OUTPUT_VERSION < 8
- check_totals(383);
+ check_totals(387);
 #else
- check_totals(384);
+ check_totals(388);
 #endif
 
 #else // OUTPUT_VERSION <= 5




reply via email to

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