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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Make...
Date: Tue, 19 Sep 2006 10:03:09 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/09/19 10:03:09

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Makefile.am 
Added files:
        testsuite/actionscript.all: Number.as 

Log message:
        new Number testcase (small, but already failing for gnash)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.865&r2=1.866
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Makefile.am?cvsroot=gnash&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Number.as?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.865
retrieving revision 1.866
diff -u -b -r1.865 -r1.866
--- ChangeLog   19 Sep 2006 09:53:00 -0000      1.865
+++ ChangeLog   19 Sep 2006 10:03:09 -0000      1.866
@@ -1,5 +1,8 @@
 2006-09-19 Sandro Santilli  <address@hidden>
 
+       * testsuite/actionscript.all/Makefile.am,
+         testsuite/actionscript.all/Number.as:
+         new testcase (small, but already failing for gnash)
        * testsuite/actionscript.all/TODO: new file
        * server/swf/ASHandlers.cpp (ActionEqual): fixed behavior.
        * server/swf.h: Added info about ACTION_EQUAL.

Index: testsuite/actionscript.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Makefile.am,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- testsuite/actionscript.all/Makefile.am      17 Sep 2006 19:45:59 -0000      
1.29
+++ testsuite/actionscript.all/Makefile.am      19 Sep 2006 10:03:09 -0000      
1.30
@@ -77,6 +77,7 @@
        Mouse.swf               \
        MovieClip.swf           \
        NetStream.swf           \
+       Number.swf              \
        Selection.swf           \
        SharedObject.swf        \
        Stage.swf               \

Index: testsuite/actionscript.all/Number.as
===================================================================
RCS file: testsuite/actionscript.all/Number.as
diff -N testsuite/actionscript.all/Number.as
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/actionscript.all/Number.as        19 Sep 2006 10:03:09 -0000      
1.1
@@ -0,0 +1,62 @@
+// 
+//   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+//
+// This program is free software; you can redistribute it and/or modchecky
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+//
+// along with this program; check not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA  02110-1301  
USA
+//
+// Linking Gnash statically or dynamically with other modules is making a
+// combined work based on Gnash. Thus, the terms and conditions of the GNU
+// General Public License cover the whole combination.
+//
+// As a special exception, the copyright holders of Gnash give you
+// permission to combine Gnash with free software programs or libraries
+// that are released under the GNU LGPL and with code included in any
+// release of Talkback distributed by the Mozilla Foundation. You may
+// copy and distribute such a system following the terms of the GNU GPL
+// for all but the LGPL-covered parts and Talkback, and following the
+// LGPL for the LGPL-covered parts.
+//
+// Note that people who make modified versions of Gnash are not obligated
+// to grant this special exception for their modified versions; it is their
+// choice whether to do so. The GNU General Public License gives permission
+// to release a modified version without this exception; this exception
+// also makes it possible to release a modified version which carries
+// forward this exception.
+//
+
+// Test case for Number ActionScript class
+// compile this test case with Ming makeswf, and then
+// execute it like this gnash -1 -r 0 -v out.swf
+
+//
+// TODO: have ming output ACTION_EQUAL
+//       it seems it will only do it for SWF4 output
+//
+// TODO: test with SWF target != 6 (the only one tested so far)
+//     
+
+rcsid="$Id: Number.as,v 1.1 2006/09/19 10:03:09 strk Exp $";
+
+#include "check.as"
+
+var n1=new Number(268);
+
+check ( ! (n1 === 268) );
+
+// They are not the same object !
+check ( ! (n1 === Number(268)) );
+
+check ( n1 == 268 );
+




reply via email to

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