gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/Makefil...


From: Zou Lunkai
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-swfc.all/Makefil...
Date: Tue, 20 Nov 2007 06:43:14 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/11/20 06:43:13

Modified files:
        .              : ChangeLog 
        testsuite/misc-swfc.all: Makefile.am 
Added files:
        testsuite/misc-swfc.all: swf4opcode.sc 

Log message:
        

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4897&r2=1.4898
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/swf4opcode.sc?cvsroot=gnash&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4897
retrieving revision 1.4898
diff -u -b -r1.4897 -r1.4898
--- ChangeLog   20 Nov 2007 05:53:58 -0000      1.4897
+++ ChangeLog   20 Nov 2007 06:43:13 -0000      1.4898
@@ -1,5 +1,10 @@
 2007-11-20 Zou Lunkai <address@hidden>
 
+       * testsuite/misc-swfc.all/swf4opcode.sc, Makefile.am: add tests for swf4
+         opcodes, get some failures.
+         
+2007-11-20 Zou Lunkai <address@hidden>
+
        * server/vm/AsHandlers.cpp: using to_string_versioned() for opcode 
ActionStringEq,
          fix bug21567.
        

Index: testsuite/misc-swfc.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- testsuite/misc-swfc.all/Makefile.am 8 Nov 2007 10:37:16 -0000       1.15
+++ testsuite/misc-swfc.all/Makefile.am 20 Nov 2007 06:43:13 -0000      1.16
@@ -32,6 +32,7 @@
        registerclass_test3.sc \
        edittext_test1.sc \
        opcode_guard_test2.sc \
+       swf4opcode.sc \
        $(NULL)
 
 # These will get compiled to SWFs just as above, but will not be executed as a 
test

Index: testsuite/misc-swfc.all/swf4opcode.sc
===================================================================
RCS file: testsuite/misc-swfc.all/swf4opcode.sc
diff -N testsuite/misc-swfc.all/swf4opcode.sc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-swfc.all/swf4opcode.sc       20 Nov 2007 06:43:13 -0000      
1.1
@@ -0,0 +1,67 @@
+/*
+ *   Copyright (C) 2007 Free Software Foundation, Inc.
+ * 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 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; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */ 
+
+/*
+ *  Zou Lunkai, address@hidden
+ *
+ *  test opcodes defined in swf4
+ */
+
+//
+// Dejagnu clip does not work/compile in swf4.
+//
+
+#define pass_check() { trace("PASSED: "); trace(__FILE__); }
+#define xpass_check() { trace("XPASSED: "); trace(__FILE__); }
+#define fail_check() { trace("FAILED: " ); trace(__FILE__); }
+#define xfail_check(){ trace("XFAILED: "); trace(__FILE__); }
+
+
+//
+// Use check_equals(<obtained>, <expected>)
+//
+#define check_equals(obt, exp)  \
+    if ( obt == exp ) pass_check() \
+    else fail_check()
+    
+#define xcheck_equals(obt, exp)  \
+        if ( obt == exp ) xpass_check() \
+        else xfail_check()
+        
+
+.flash  bbox=800x600 filename="swf4opcode.swf" background=white version=4 
fps=12
+
+.frame 1
+    .action:
+        testvar = (uninitialized1 == '');
+        xcheck_equals(testvar, 1);
+        testvar = ('' == uninitialized2);
+        xcheck_equals(testvar, 1); 
+        testvar = ('' == '');  
+        xcheck_equals(testvar, 1); 
+        testvar = ('xyz' == 'abc');
+        xcheck_equals(testvar, 1); 
+    .end
+
+.frame 3
+    .action:
+        stop();
+    .end
+    
+.end
+




reply via email to

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