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: Sun, 27 Apr 2008 16:26:43 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/04/27 16:26:43

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

Log message:
        add test showing a scary bug with update_member and non-properties.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6419&r2=1.6420
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextField.as?cvsroot=gnash&r1=1.51&r2=1.52

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6419
retrieving revision 1.6420
diff -u -b -r1.6419 -r1.6420
--- ChangeLog   27 Apr 2008 15:39:38 -0000      1.6419
+++ ChangeLog   27 Apr 2008 16:26:42 -0000      1.6420
@@ -1,5 +1,10 @@
 2008-04-27 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/TextField.as: add test showing a scary
+         bug with update_member and non-properties.
+
+2008-04-27 Sandro Santilli <address@hidden>
+
        * server/namedStrings.{cpp,h}: add PROP_USEHANDCURSOR named string.
        * server/character.h: add virtual allowHandCursor() method.
        * gui/gui.cpp (notify_mouse_moved): check if active entity under

Index: testsuite/actionscript.all/TextField.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextField.as,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- testsuite/actionscript.all/TextField.as     8 Apr 2008 21:59:24 -0000       
1.51
+++ testsuite/actionscript.all/TextField.as     27 Apr 2008 16:26:43 -0000      
1.52
@@ -20,7 +20,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: TextField.as,v 1.51 2008/04/08 21:59:24 strk Exp $";
+rcsid="$Id: TextField.as,v 1.52 2008/04/27 16:26:43 strk Exp $";
 #include "check.as"
 
 #if OUTPUT_VERSION > 5
@@ -847,12 +847,57 @@
 createTextField("tf6", 103, 10, 10, 160);
 check_equals(typeof(tf6), 'undefined');
 
+//------------------------------------------------------------
+// Test properties
+//------------------------------------------------------------
+
+_root._visible = true; // just to be sure
+_root._xscale = _root._yscale = 100;
+_root.createTextField('htf',0,0,0,0,0);
+check_equals(typeof(htf), 'object');
+tf = htf;
+with(tf) {
+        _x=10;
+        _y=11;
+        _visible=false;
+        _xscale=200;
+        _yscale=201;
+       _parent='fake_parent';
+       _name='fake_name';
+        _target='fake';
+}
+
+xcheck_equals(_root._x, 0);
+xcheck_equals(_root._y, 0);
+xcheck_equals(_root._visible, true);
+check_equals(_root._xscale, 100);
+check_equals(_root._yscale, 100);
+check_equals(_root._target, '/');
+xcheck_equals(_root._parent, 'fake_parent');
+check_equals(_root._name, '');
+
+xcheck_equals(tf._x, 10);
+xcheck_equals(tf._y, 11);
+xcheck_equals(tf._visible, false);
+xcheck_equals(tf._xscale, 200);
+xcheck_equals(tf._yscale, 201);
+check_equals(tf._target, '/fake_name');
+check_equals(tf._parent, _level0); 
+check_equals(tf._name, 'fake_name');
+
+_root._visible = true;
+_root._x = _root._y = 0;
+_root._xscale = _root._yscale = 100;
 
 
+//------------------------------------------------------------
+// END OF TESTS
+//------------------------------------------------------------
+
 #if OUTPUT_VERSION < 8
- check_totals(398);
+ check_totals(415);
 #else
- check_totals(399);
+ check_totals(416);
 #endif
 
 #else // OUTPUT_VERSION <= 5




reply via email to

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